GHSA-pfr9-2p92-qrhq
MEDIUM 5.5CVSS 3.1Databento Binary Encoding (DBN) has a heap buffer overflow using c_chars_to_str function
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.
If 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
- 7 Oct 2024
- Last modified
- 20 May 2026
- Weakness
- CWE-126
- Also known as
- RUSTSEC-2024-0377
- Sources
- OSVJSONOSV RUSTSEC-2024-0377JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | dbn | < 0.22.1 | 0.22.1 |
| OSV | crates.io | dbn | >= 0.0.0-0, < 0.22.1-0 | 0.22.1-0 |
References
- https://github.com/databento/dbn/issues/67 · WEB, REPORT
- https://github.com/databento/dbn/commit/339efb90fdb980920a5e8829008abc1114f4bfdd · WEB
- https://github.com/databento/dbn · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0377.html · WEB, ADVISORY
- https://crates.io/crates/dbn · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Oct 2024)