Every CVE Search/ Get API key

CVE-2023-0437

MongoDB client C Driver may infinitely loop when validating certain BSON input data

5.3 MediumFix available

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

1.10%Up 1.1 points since Jan 17, 2024
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1
7.5 HighCVSS: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 HighCVSS: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 MediumCVSS: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 HighCVSS: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 HighCVSS: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 MediumCVSS: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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1
7.5 HighCVSS: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

Affected packages
PackageAffectedFixed
mongo-c-driver
Alpine:v3.20
before 1.25.4-r0
1.25.4-r0
mongo-c-driver
Alpine:v3.21
before 1.25.4-r0
1.25.4-r0
mongo-c-driver
Alpine:v3.22
before 1.25.4-r0
1.25.4-r0
mongo-c-driver
Alpine:v3.23
before 1.25.4-r0
1.25.4-r0
mongo-c-driver
Alpine:v3.24
before 1.25.4-r0
1.25.4-r0
libbson-xs-perl
Debian:12
before 0.8.4-2+deb12u1, plus listed versions
0.8.4-2
0.8.4-2+deb12u1
mongo-c-driver
Debian:12
before 1.23.1-1+deb12u1, plus listed versions
1.23.1-1
1.23.1-1+deb12u1
mongo-c-driver
Debian:13
before 1.25.0-1
1.25.0-1
mongo-c-driver
Debian:14
before 1.25.0-1
1.25.0-1
libbson-xs-perl
Debian: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
Affected packages
PackageAffectedFixed
mongo-c-driver
Debian: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_jll
Julia
before 1.25.1+0
1.25.1+0
mongo-c-driver
openEuler:20.03-LTS-SP1
before 1.13.1-4.oe1
1.13.1-4.oe1
mongo-c-driver
openEuler:20.03-LTS-SP4
before 1.13.1-4.oe2003sp4
1.13.1-4.oe2003sp4
mongo-c-driver
openEuler:22.03-LTS
before 1.13.1-7.oe2203sp3
1.13.1-7.oe2203sp3
mongo-c-driver
openEuler:22.03-LTS-SP1
before 1.13.1-7.oe2203sp1
1.13.1-7.oe2203sp1
mongo-c-driver
openEuler:22.03-LTS-SP2
before 1.13.1-7.oe2203sp2
1.13.1-7.oe2203sp2
mongo-c-driver
openEuler:22.03-LTS-SP3
before 1.13.1-7.oe2203sp3
1.13.1-7.oe2203sp3

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
affected
first indexedCVE 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

Show 6 moreShow less
MoveEnter Open