CVE-2023-0437

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

State
Published
Severity
5.3 Medium
Published
Jan 12, 2024
Updated
Nov 3, 2025
Reserved
Jan 23, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Lmongodb

Weaknesses

  • CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')

Affected Products

ProductVersions
MongoDB C DriverMongoDB Inc
  • 1.0.0 to before 1.25.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.