CVE-2025-12119
MongoDB vulnerability analysis and mitigation

Overview

CVE-2025-12119 is an expired pointer dereference vulnerability in the MongoDB C Driver and PHP Driver that causes a mongoc_bulk_operation_t to read invalid memory when large options are passed. It was disclosed on November 18, 2025, and affects MongoDB C Driver versions 1.9.0–1.30.5 and 2.0.0–2.1.1, as well as MongoDB PHP Driver (mongodb/mongodb-extension) versions prior to 1.21.2. The vulnerability carries a CVSS v4.0 base score of 6.9 (Medium) as assigned by MongoDB, Inc., and a CVSS v3.1 base score of 3.3 (Low) per NVD enrichment (Github Advisory, NVD).

Technical details

The root cause is classified as CWE-825 (Expired Pointer Dereference): when large options are supplied to a mongoc_bulk_operation_t, the driver dereferences a pointer to memory that has already been freed or is otherwise no longer valid, resulting in an out-of-bounds read. The flaw resides in write command options handling within libmongoc, as confirmed by the fix description in both the 1.30.6 and 2.1.2 release notes. Exploitation requires local access and low privileges — an attacker or malicious application must be able to invoke bulk operation APIs with crafted oversized option documents. A specific commit fixing the issue in the PHP driver is referenced as fa5b433, and the corresponding C driver fix is commit 775998df7c67 (Github Advisory, C Driver 1.30.6, C Driver 2.1.2).

Impact

Successful exploitation could allow a local attacker with low privileges to read sensitive contents from process memory, potentially exposing credentials, query data, or other confidential information handled by the MongoDB driver. There is also a low availability impact, as the invalid memory read could cause application instability or crashes. Integrity is not affected, and there is no evidence of lateral movement potential or impact on subsequent systems (Github Advisory, NVD).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.007% (1st percentile), indicating a very low probability of exploitation in the near term. No threat actor attribution has been reported (Github Advisory, Feedly).

Mitigation and workarounds

MongoDB has released patched versions addressing this vulnerability. Users should upgrade to the following:

  • MongoDB C Driver: version 1.30.6 (for the 1.x branch) or 2.1.2 (for the 2.x branch)
  • MongoDB PHP Driver (mongodb/mongodb-extension): version 1.21.2, which bundles libmongoc 1.30.6

No configuration-based workaround is documented; upgrading is the recommended remediation. Additionally, limiting local system access and implementing strict input validation for bulk operation options can reduce exposure until patching is possible (C Driver 1.30.6, C Driver 2.1.2, PHP Driver 1.21.2).

Additional resources


SourceThis report was generated using AI

Related MongoDB vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-18712HIGH7.2
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18711HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18709MEDIUM5.9
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18708MEDIUM5.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18707MEDIUM5.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management