Vulnerability · Published Jan 12, 2024 · Assigned by mongodb
CVE-2023-0437MongoDB client C Driver may infinitely loop when validating certain BSON input data
Medium 5.3
In plain English
A medium-severity infinite loop in MongoDB C Driver from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.1%top 34.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
When calling bson_utf8_validate on some inputs a loop with an exit condition that cannot be reached may occur, i.e. an infinite loop. This issue affects All MongoDB C Driver versions prior to versions 1.25.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | mongo-c-driver | 1.25.4-r0 | ALPINE-CVE-2023-0437 |
| Alpine:v3.21 | mongo-c-driver | 1.25.4-r0 | ALPINE-CVE-2023-0437 |
| Alpine:v3.22 | mongo-c-driver | 1.25.4-r0 | ALPINE-CVE-2023-0437 |
| Alpine:v3.23 | mongo-c-driver | 1.25.4-r0 | ALPINE-CVE-2023-0437 |
| Alpine:v3.24 | mongo-c-driver | 1.25.4-r0 | ALPINE-CVE-2023-0437 |
| Debian:12 | libbson-xs-perl | 0.8.4-2+deb12u1 | DEBIAN-CVE-2023-0437 |
| Debian:12 | mongo-c-driver | 1.23.1-1+deb12u1 | DEBIAN-CVE-2023-0437 |
| Debian:13 | mongo-c-driver | 1.25.0-1 | DEBIAN-CVE-2023-0437 |
| Debian:14 | mongo-c-driver | 1.25.0-1 | DEBIAN-CVE-2023-0437 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc | MongoDB C Driver | 1.0.0 – before 1.25.0 |
Weakness: CWE-835 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://jira.mongodb.org/browse/CDRIVER-4747
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GUVOAFZFSYTNBF6R7H4XJM5DHWBRQ6P/
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html