# Databento Binary Encoding (DBN) has a heap buffer overflow using c_chars_to_str function

Advisory record · `GHSA-pfr9-2p92-qrhq`

- **Identifiers:** `GHSA-pfr9-2p92-qrhq` · `RUSTSEC-2024-0377`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-126](https://cwe.mitre.org/data/definitions/126.html)
- **Tags:** [CWE-126](https://agentprime.io/advisories/tag/cwe-126.md)
- **Published:** 9 Oct 2024
- **Updated:** 20 May 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 9 Oct 2024, 14:34 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `dbn` (crates.io): affected `<0.22.1`; fixed in `0.22.1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The dbn crate, versions before 0.22.1, has a heap buffer overflow in its c_chars_to_str function. If the input character array lacks a null terminator, the function reads past the end of the buffer, which can expose data or corrupt memory. The source does not state what input or attacker access is required to reach this path. Upgrade to dbn 0.22.1 or later.

Written 8 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 15:18 UTC: First seen by agentprime
- 31 Oct 2026, 15:18 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-pfr9-2p92-qrhq)

## Sources

- [GitHub Advisory Database: GHSA-pfr9-2p92-qrhq](https://github.com/advisories/GHSA-pfr9-2p92-qrhq)
- [OSV: GHSA-pfr9-2p92-qrhq](https://osv.dev/vulnerability/GHSA-pfr9-2p92-qrhq)
- <https://github.com/databento/dbn/issues/67>
- <https://github.com/databento/dbn/commit/339efb90fdb980920a5e8829008abc1114f4bfdd>
- <https://github.com/databento/dbn>
- <https://rustsec.org/advisories/RUSTSEC-2024-0377.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-pfr9-2p92-qrhq>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-pfr9-2p92-qrhq/>. Everything for agents: <https://agentprime.io/llms.txt>.
