Description
The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | libbson | < 1.27.1 | 1.27.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mongo-c-driver | 1.27.1-1 | — |
| Debian 13 | mongo-c-driver | 1.27.1-1 | — |
| Debian 12 | libbson-xs-perl | 0.8.4-2+deb12u1 | — |
| Debian 12 | mongo-c-driver | 1.23.1-1+deb12u1 | — |
| Debian 11 | libbson-xs-perl | 0.8.4-1+deb11u1 | DLA-4160-1 |
| Debian 11 | mongo-c-driver | 1.17.6-1+deb11u1 | DLA-4175-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | mongo-c-driver | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | mongo-c-driver | 1.26.0-1.1ubuntu2+esm1 | USN-7613-1 |
| Ubuntu Pro 22.04 LTS | mongo-c-driver | 1.21.0-1ubuntu0.1~esm1 | USN-7613-1 |
| Ubuntu Pro 20.04 LTS | mongo-c-driver | 1.16.1-1ubuntu0.1~esm1 | USN-7613-1 |
| Ubuntu Pro 18.04 LTS | libbson | No fix yet | — |
| Ubuntu Pro 16.04 LTS | libbson | No fix yet | — |
Advisories 4
- USN-7613-1 mongo-c-driver vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-4175-1 mongo-c-driver - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-4160-1 libbson-xs-perl - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2024-1518 MongoDB: Schwachstelle ermöglicht Manipulation von Daten BSI CERT-Bund (WID) · Jul 2, 2025