
CVE catalog
CVE-2024-6381
mongo-c-driver vulnerabilities
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.39% · Oct 25, 2026
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
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | mongo-c-driver | sid | 2.5.7-1 | fixed |
| Debian | mongo-c-driver | forky | 2.5.6-1 | fixed |
| Debian | mongo-c-driver | trixie | 1.30.4-1+deb13u3 | fixed |
| Debian | mongo-c-driver | bookworm | 1.23.1-1+deb12u3 | fixed |
| Debian | libbson-xs-perl | bookworm | 0.8.4-2+deb12u1 | fixed |
| Ubuntu | mongo-c-driver | noble | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | libbson-1.0-0t64 | noble | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | libbson-dev | noble | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | libbson-doc | noble | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | libmongoc-1.0-0t64 | noble | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | libmongoc-dev | noble | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | libmongoc-doc | noble | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | mongo-c-driver | pro | 1.24.3-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.24.4-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.25.1-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.25.2-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.25.4-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1.1ubuntu1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1.1ubuntu2 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1.1ubuntu2+esm1 | fixed |
| Ubuntu | libbson | pro | 1.8.0-1 | vulnerable |
| Ubuntu | libbson | pro | 1.8.1-1 | vulnerable |
| Ubuntu | libbson | pro | 1.9.0-1 | vulnerable |
| Ubuntu | libbson | pro | 1.9.2-1 | vulnerable |
| Ubuntu | libbson | pro | 1.9.2-1ubuntu0.1~esm2 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.24.3-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.24.4-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.25.1-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.25.2-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.25.4-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1.1ubuntu1 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1.1ubuntu2 | vulnerable |
| Ubuntu | mongo-c-driver | pro | 1.26.0-1.1ubuntu2+esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | mongo-c-driver | source | sid | 1.26.2-1 | not yet assigned | Not reported | Not reported |
| Debian | mongo-c-driver | source | forky | 1.26.2-1 | not yet assigned | Not reported | Not reported |
| Debian | mongo-c-driver | source | trixie | 1.26.2-1 | not yet assigned | Not reported | Not reported |
| Debian | mongo-c-driver | source | bookworm | 1.23.1-1+deb12u1 | not yet assigned | Not reported | Not reported |
| Debian | libbson-xs-perl | source | bookworm | 0.8.4-2+deb12u1 | not yet assigned | Not reported | Not reported |
| Ubuntu | mongo-c-driver | deb | noble | 1.26.0-1.1ubuntu2+esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libbson-1.0-0t64 | deb | noble | 1.26.0-1.1ubuntu2+esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libbson-dev | deb | noble | 1.26.0-1.1ubuntu2+esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libbson-doc | deb | noble | 1.26.0-1.1ubuntu2+esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libmongoc-1.0-0t64 | deb | noble | 1.26.0-1.1ubuntu2+esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libmongoc-dev | deb | noble | 1.26.0-1.1ubuntu2+esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libmongoc-doc | deb | noble | 1.26.0-1.1ubuntu2+esm1 | Not reported | Not reported | Not reported |
| Ubuntu | mongo-c-driver | deb | pro | 1.26.0-1.1ubuntu2+esm1 | Not reported | USN-7613-1 | Not reported |
| Ubuntu | mongo-c-driver | deb | pro | 1.26.0-1.1ubuntu2+esm1 | Not reported | UBUNTU-CVE-2024-6381 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libbson-1.0-0]Fixed
Source package: [mongo-c-driver]
Details (2)
1.23.1-1+deb12u3· amd64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
1.23.1-1+deb12u3· arm64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
- [libbson-dev]Fixed
Source package: [mongo-c-driver]
Details (2)
1.23.1-1+deb12u3· amd64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
1.23.1-1+deb12u3· arm64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
- [libbson-doc]Fixed
Source package: [mongo-c-driver]
Details (2)
1.23.1-1+deb12u3· all · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
1.23.1-1+deb12u3· all · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
- [libbson-xs-perl]Fixed
Details (2)
0.8.4-2+deb12u1· amd64 · bookwormFixed · Fixed:
0.8.4-2+deb12u1usn · libbson-xs-perl · debian · bookworm; usn · libbson-xs-perl · debian · 12
0.8.4-2+deb12u1· arm64 · bookwormFixed · Fixed:
0.8.4-2+deb12u1usn · libbson-xs-perl · debian · bookworm; usn · libbson-xs-perl · debian · 12
- [libmongoc-1.0-0]Fixed
Source package: [mongo-c-driver]
Details (2)
1.23.1-1+deb12u3· amd64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
1.23.1-1+deb12u3· arm64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
- [libmongoc-dev]Fixed
Source package: [mongo-c-driver]
Details (2)
1.23.1-1+deb12u3· amd64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
1.23.1-1+deb12u3· arm64 · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
- [libmongoc-doc]Fixed
Source package: [mongo-c-driver]
Details (2)
1.23.1-1+deb12u3· all · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
1.23.1-1+deb12u3· all · bookwormFixed · Fixed:
1.23.1-1+deb12u1usn · mongo-c-driver · debian · bookworm; usn · mongo-c-driver · debian · 12
[Debian 13 (Trixie)]
- [libbson-1.0-0t64]Fixed
Source package: [mongo-c-driver]
Details (2)
1.30.4-1+deb13u2· amd64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
1.30.4-1+deb13u2· arm64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
- [libbson-dev]Fixed
Source package: [mongo-c-driver]
Details (2)
1.30.4-1+deb13u2· amd64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
1.30.4-1+deb13u2· arm64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
- [libbson-doc]Fixed
Source package: [mongo-c-driver]
Details (2)
1.30.4-1+deb13u2· all · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
1.30.4-1+deb13u2· all · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
- [libmongoc-1.0-0t64]Fixed
Source package: [mongo-c-driver]
Details (2)
1.30.4-1+deb13u2· amd64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
1.30.4-1+deb13u2· arm64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
- [libmongoc-dev]Fixed
Source package: [mongo-c-driver]
Details (2)
1.30.4-1+deb13u2· amd64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
1.30.4-1+deb13u2· arm64 · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
- [libmongoc-doc]Fixed
Source package: [mongo-c-driver]
Details (2)
1.30.4-1+deb13u2· all · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
1.30.4-1+deb13u2· all · trixieFixed · Fixed:
1.26.2-1usn · mongo-c-driver · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-6381]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-6381]
- [https://osv.dev/vulnerability/USN-7613-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-6381]
- [https://ubuntu.com/security/notices/USN-7613-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1508.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Ubuntu Security Notices (USN)]