CVE-2025-0755 MongoDB C Driver bson library may be susceptible to buffer overflow
HighCVSS 7.5
EPSS 0.79%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
The various bson_append functions in the MongoDB C driver library may be susceptible to buffer overflow when performing operations that could result in a final BSON document which exceeds the maximum allowable size (INT32_MAX), resulting in a segmentation fault and possible application crash. This issue affected libbson versions prior to 1.27.5, MongoDB Server v8.0 versions prior to 8.0.1 and MongoDB Server v7.0 versions prior to 7.0.16
Upgrade path
9 packages: 8 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/mongo-c-driver(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| 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.27.5-1 | 1.27.5-1 | Fixed |
| debian/mongo-c-driver(Debian 14) | < 1.27.5-1 | 1.27.5-1 | Fixed |
| MongoDB libbson | < 1.27.5 | 1.27.5 | Fixed |
| MongoDB Server | >= 7.0, < 7.0.16; >= 8.0, < 8.0.1 | 7.0.16, 8.0.1 | Fixed |
| mongodb/mongodb | < 1.27.5; = 8.0.0; >= 7.0.0, < 7.0.16 | 1.27.5, 7.0.16 | 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.27.5-1 | 1.27.5-1 |
| debian/mongo-c-driver(Debian:14) | < 1.27.5-1 | 1.27.5-1 |
| MongoDB libbson | < 1.27.5 | 1.27.5 |
| mongodb/mongodb | < 1.27.5 | 1.27.5 |
| MongoDB Server | >= 8.0, < 8.0.1 | 8.0.1 |
| MongoDB Server | >= 7.0, < 7.0.16 | 7.0.16 |
| ubuntu/mongo-c-driver(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/mongo-c-driver(Ubuntu:24.04) | < 1.26.0-1.1ubuntu2+esm1 | 1.26.0-1.1ubuntu2+esm1 |
| mongodb/mongodb | >= 7.0.0, < 7.0.16 | 7.0.16 |
| mongodb/mongodb | = 8.0.0 | No fix listed |
References
- Debian Security Tracker CVE-2025-0755 vendor-advisory
- jira.mongodb.org issue-tracking vendor-advisory
- jira.mongodb.org issue-tracking vendor-advisory
- lists.debian.org
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7613-1 vendor-advisory
- www.cve.org