MongoDB client C Driver may infinitely loop when validating certain BSON input data (MongoDB Inc MongoDB C Driver)
At a glance
- Source
- NVD
- EPSS
- EPSS 1.10 % · percentile 66 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- mongodb
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-835 — Loop with Unreachable Exit Condition
References
- https://jira.mongodb.org/browse/CDRIVER-4747
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GUVOAFZFSYTNBF6R7H4XJM5DHWBRQ6P/
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | mongodb |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD · cna@mongodb.com (Secondary) |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2023-12492
- GCVE · GCVE-0-2023-0437
CERT-FR advisories
- CERTFR-2024-AVI-0042 — Vulnérabilité dans MongoDB C-Driver · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*< 1.25.0
Affected products
| Product | Versions |
|---|---|
| MongoDB Inc · MongoDB C Driver | affected 1.0.0 < 1.25.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |