CVE-2023-0437 MongoDB client C Driver may infinitely loop when validating certain BSON input data

Medium 5.3 Published Updated

An attacker can cause a denial of service by sending specific BSON data that triggers an infinite loop in the MongoDB C Driver's UTF-8 validation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-0437?

CVE-2023-0437 is a medium-severity denial of service vulnerability in MongoDB C Driver, published on 12 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-835

Which versions are affected by CVE-2023-0437?

It affects 1 product.

Products include Mongodb C Driver.

How do I fix CVE-2023-0437?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-0437 being exploited?

There is no known exploitation of CVE-2023-0437 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-0437, GHSA-8549-4c5j-x7g2, JLSEC-2026-179, OESA-2024-1076.

Is CVE-2023-0437 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free