Description
_bson_iter_next_internal in bson-iter.c in libbson 1.12.0, as used in MongoDB mongo-c-driver and other products, has a heap-based buffer over-read via a crafted bson buffer.
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.13.0-1 | — |
| Debian 13 | mongo-c-driver | 1.13.0-1 | — |
| Debian 12 | libbson-xs-perl | 0.8.4-2+deb12u1 | — |
| Debian 12 | mongo-c-driver | 1.13.0-1 | — |
| Debian 11 | libbson-xs-perl | 0.8.4-1+deb11u1 | DLA-4160-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | libbson | 1.9.2-1ubuntu0.1~esm2 | USN-4812-1 |
| Ubuntu Pro 16.04 LTS | libbson | 1.3.1-1ubuntu0.1~esm1 | USN-4812-1 |
Advisories 3
- USN-4812-1 libbson vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-4160-1 libbson-xs-perl - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2025-0993 MongoDB: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · May 11, 2025