CVE-2023-0437
MongoDB client C Driver may infinitely loop when validating certain BSON input data
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.3
MongoDB client C Driver may infinitely loop when validating certain BSON input data
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.
- Record
CVE-2023-0437- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-835
- Updated
- 2026-11-02
EUVDEUVD-2023-12492
5.3
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.
- Record
EUVD-2023-12492- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8549-4c5j-x7g2
5.3
When calling bson_utf8_validate on some inputs a loop with an exit condition that cannot be...
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.
- Record
GHSA-8549-4c5j-x7g2- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-835
- Updated
- 2026-11-02
NVD
5.3
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.
- Record
CVE-2023-0437- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
OSVALPINE-CVE-2023-0437
7.5
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.
- Record
ALPINE-CVE-2023-0437- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
5.3
MongoDB client C Driver may infinitely loop when validating certain BSON input data
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.
- Record
CVE-2023-0437- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-835
- Updated
- 2026-11-02
Show 4 moreShow less
OSVDEBIAN-CVE-2023-0437
7.5
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.
- Record
DEBIAN-CVE-2023-0437- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-179
7.5
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.
- Record
JLSEC-2026-179- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2024-1076
5.3
mongo-c-driver security update
mongo-c-driver is a project that includes two libraries: libmongoc, a client library written in C for MongoDB. libbson, a library providing useful routines related to building, parsing, and iterating BSON documents.
Security Fix(es):
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.
(CVE-2023-0437)
- Record
OESA-2024-1076- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-0437
5.3
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.
- Record
UBUNTU-CVE-2023-0437- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mongo-c-driverAlpine:v3.20 |
before 1.25.4-r0 | 1.25.4-r0 |
mongo-c-driverAlpine:v3.21 |
before 1.25.4-r0 | 1.25.4-r0 |
mongo-c-driverAlpine:v3.22 |
before 1.25.4-r0 | 1.25.4-r0 |
mongo-c-driverAlpine:v3.23 |
before 1.25.4-r0 | 1.25.4-r0 |
mongo-c-driverAlpine:v3.24 |
before 1.25.4-r0 | 1.25.4-r0 |
libbson-xs-perlDebian:12 |
before 0.8.4-2+deb12u1, plus listed versions 0.8.4-2 |
0.8.4-2+deb12u1 |
mongo-c-driverDebian:12 |
before 1.23.1-1+deb12u1, plus listed versions 1.23.1-1 |
1.23.1-1+deb12u1 |
mongo-c-driverDebian:13 |
before 1.25.0-1 | 1.25.0-1 |
mongo-c-driverDebian:14 |
before 1.25.0-1 | 1.25.0-1 |
libbson-xs-perlDebian:11 From an advisory covering 6 CVEs |
before 0.8.4-1+deb11u1, plus listed versions 0.8.4-1 |
0.8.4-1+deb11u1 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
mongo-c-driverDebian:11 From an advisory covering 5 CVEs |
before 1.17.6-1+deb11u1, plus listed versions 1.17.6-1 |
1.17.6-1+deb11u1 |
MongoC_jllJulia |
before 1.25.1+0 | 1.25.1+0 |
mongo-c-driveropenEuler:20.03-LTS-SP1 |
before 1.13.1-4.oe1 | 1.13.1-4.oe1 |
mongo-c-driveropenEuler:20.03-LTS-SP4 |
before 1.13.1-4.oe2003sp4 | 1.13.1-4.oe2003sp4 |
mongo-c-driveropenEuler:22.03-LTS |
before 1.13.1-7.oe2203sp3 | 1.13.1-7.oe2203sp3 |
mongo-c-driveropenEuler:22.03-LTS-SP1 |
before 1.13.1-7.oe2203sp1 | 1.13.1-7.oe2203sp1 |
mongo-c-driveropenEuler:22.03-LTS-SP2 |
before 1.13.1-7.oe2203sp2 | 1.13.1-7.oe2203sp2 |
mongo-c-driveropenEuler:22.03-LTS-SP3 |
before 1.13.1-7.oe2203sp3 | 1.13.1-7.oe2203sp3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-0437 is a medium vulnerability (CVSS 5.3) in Mongodb C Driver, published January 12, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.10%, the 65th percentile. Fixed in mongo-c-driver 1.25.4-r0.
References
jira.mongodb.org/browse/CDRIVER-4747
lists.fedoraproject.org/archives/list/[email protected]/message/7GUVOAFZFSYTNBF6R7H4XJM5DHWBRQ6P
lists.debian.org/debian-lts-announce/2025/05/msg00027.html
lists.debian.org/debian-lts-announce/2025/05/msg00012.html
nvd.nist.gov/vuln/detail/CVE-2023-0437
github.com/advisories/GHSA-8549-4c5j-x7g2
Show 6 moreShow less
security.alpinelinux.org/vuln/CVE-2023-0437
github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0437.json
security-tracker.debian.org/tracker/CVE-2023-0437
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1076
ubuntu.com/security/CVE-2023-0437
cve.org/CVERecord?id=CVE-2023-0437