Databento Binary Encoding (DBN) has a heap buffer overflow using c_chars_to_str function
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | dbn (crates.io) | before 0.22.1 | 0.22.1 | Patch available | GHSA-pfr9-2p92-qrhq |
- dbn (crates.io) Vendor— Affected before 0.22.1 Fixed in 0.22.1 Patch available GHSA-pfr9-2p92-qrhq
Remediation
- Fix · GHSA-pfr9-2p92-qrhq dbn (crates.io) Fixed in 0.22.1 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-pfr9-2p92-qrhq
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences