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

EcosystemPackageFixed inAdvisory
Alpine:v3.20mongo-c-driver1.25.4-r0ALPINE-CVE-2023-0437
Alpine:v3.21mongo-c-driver1.25.4-r0ALPINE-CVE-2023-0437
Alpine:v3.22mongo-c-driver1.25.4-r0ALPINE-CVE-2023-0437
Alpine:v3.23mongo-c-driver1.25.4-r0ALPINE-CVE-2023-0437
Alpine:v3.24mongo-c-driver1.25.4-r0ALPINE-CVE-2023-0437
Debian:12libbson-xs-perl0.8.4-2+deb12u1DEBIAN-CVE-2023-0437
Debian:12mongo-c-driver1.23.1-1+deb12u1DEBIAN-CVE-2023-0437
Debian:13mongo-c-driver1.25.0-1DEBIAN-CVE-2023-0437
Debian:14mongo-c-driver1.25.0-1DEBIAN-CVE-2023-0437

Affected products (as reported)

VendorProductVersions
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