Vulnerability DatabaseGHSA-pfr9-2p92-qrhq

GHSA-pfr9-2p92-qrhq
Rust vulnerability analysis and mitigation

Overview

The Databento Binary Encoding (DBN) library contains a heap buffer overflow vulnerability in its c_chars_to_str function, identified as GHSA-pfr9-2p92-qrhq. The vulnerability was discovered and reported on October 7, 2024, and affects versions prior to 0.22.0. The issue stems from improper handling of C-string conversions where the code assumes input strings are null-terminated without verification (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability occurs in the c_chars_to_str function when converting character arrays to strings. The function uses CStr::from_ptr() which assumes the input is a null-terminated string. However, when the input array lacks a null terminator (\0), the strlen() function reads beyond the buffer's boundaries searching for one, resulting in an out-of-bounds memory read. The issue has been assigned a CVSS score of 6.8 (Moderate severity) with attack vector being Local, attack complexity Low, and requiring Low privileges (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to memory corruption or potential exposure of sensitive information through out-of-bounds memory reads. The primary impact is on system availability, with the CVSS metrics indicating High impact on availability but no direct impact on confidentiality or integrity (GitHub Advisory, RustSec Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.22.0 of the DBN library. The fix involves adding proper bounds checking to ensure the input array contains a valid null-terminated string before processing. Users are advised to upgrade to version 0.22.0 or later to address this security issue (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management