{"id":"GHSA-pfr9-2p92-qrhq","aliases":["RUSTSEC-2024-0377"],"url":"https://o3.security/vulnerability/GHSA-pfr9-2p92-qrhq","summary":"Databento Binary Encoding (DBN) has a heap buffer overflow using c_chars_to_str function","details":"The `heap-buffer-overflow` is triggered in the `strlen()` function when handling the `c_chars_to_str` function in the dbn crate. This vulnerability occurs because the `CStr::from_ptr()` function in Rust assumes that the provided C string is null-terminated. However, there is no guarantee that the input chars array passed to the c_chars_to_str function is properly null-terminated.\n\nIf the chars array does not contain a null byte (\\0), strlen() will continue to read beyond the bounds of the buffer in search of a null terminator. This results in an out-of-bounds memory read and can lead to a heap-buffer-overflow, potentially causing memory corruption or exposing sensitive information.","published":"2024-10-09T14:34:24Z","modified":"2026-05-20T01:00:15.746612546Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"dbn","fixedVersion":"0.22.1"}],"fix":{"url":"https://github.com/databento/dbn/commit/339efb90fdb980920a5e8829008abc1114f4bfdd","label":"databento/dbn@339efb9"},"references":[{"type":"WEB","url":"https://github.com/databento/dbn/issues/67"},{"type":"WEB","url":"https://github.com/databento/dbn/commit/339efb90fdb980920a5e8829008abc1114f4bfdd"},{"type":"PACKAGE","url":"https://github.com/databento/dbn"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2024-0377.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-05-20T01:00:15.746612546Z"}}