CVE-2024-6381: The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the
CVE-2024-6381 is a medium-severity flaw (CVSS 4.0) affecting libbson. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.0 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 67%) |
| CISA exploited list | No |
| Weakness | CWE-680 |
| Published | 2024-07-02 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-6381?
libbson: upgrade to 1.26.2. Exact commands for each OS are on this page.
Is CVE-2024-6381 being exploited?
CVE-2024-6381 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-6381 affect?
CVE-2024-6381 affects libbson. Severity is medium (CVSS 4.0). The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions
How urgent is CVE-2024-6381?
Priority 22/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2025-0755 HIGH 8.4 UPGRADE UPGRADE The various bson_append functions in the MongoDB C driver library may be susceptible to buffer overflow when p