CVE-2024-6381 MongoDB C Driver bson_strfreev may be susceptible to integer overflow
MediumCVSS 5.3
EPSS 0.39%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
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
Upgrade path
7 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libbson-xs-perl(Debian 12) | < 0.8.4-2+deb12u1; = 0.8.4-2 | 0.8.4-2+deb12u1 | Fixed |
| debian/mongo-c-driver(Debian 12) | < 1.23.1-1+deb12u1; = 1.23.1-1 | 1.23.1-1+deb12u1 | Fixed |
| debian/mongo-c-driver(Debian 13) | < 1.26.2-1 | 1.26.2-1 | Fixed |
| debian/mongo-c-driver(Debian 14) | < 1.26.2-1 | 1.26.2-1 | Fixed |
| MongoDB libbson | < 1.26.2 | 1.26.2 | Fixed |
| ubuntu/mongo-c-driver(Ubuntu 22.04) | < 1.21.0-1ubuntu0.1~esm1 | 1.21.0-1ubuntu0.1~esm1 | Fixed |
| ubuntu/mongo-c-driver(Ubuntu 24.04) | < 1.26.0-1.1ubuntu2+esm1 | 1.26.0-1.1ubuntu2+esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libbson-xs-perl(Debian:12) | < 0.8.4-2+deb12u1 | 0.8.4-2+deb12u1 |
| debian/libbson-xs-perl(Debian:12) | = 0.8.4-2 | No fix listed |
| debian/mongo-c-driver(Debian:12) | < 1.23.1-1+deb12u1 | 1.23.1-1+deb12u1 |
| debian/mongo-c-driver(Debian:12) | = 1.23.1-1 | No fix listed |
| debian/mongo-c-driver(Debian:13) | < 1.26.2-1 | 1.26.2-1 |
| debian/mongo-c-driver(Debian:14) | < 1.26.2-1 | 1.26.2-1 |
| ubuntu/mongo-c-driver(Ubuntu:22.04) | < 1.21.0-1ubuntu0.1~esm1 | 1.21.0-1ubuntu0.1~esm1 |
| MongoDB libbson | < 1.26.2 | 1.26.2 |
| ubuntu/mongo-c-driver(Ubuntu:24.04) | < 1.26.0-1.1ubuntu2+esm1 | 1.26.0-1.1ubuntu2+esm1 |
References
- Debian Security Tracker CVE-2024-6381 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7613-1 vendor-advisory
- www.cve.org
- jira.mongodb.org issue-tracking vendor-advisory
- lists.debian.org
- lists.debian.org