CVE-2025-12119: Mongodb/mongodb extension MongoDB Driver Extension Affected By Vulnerability
MODERATECVE-2025-12119 is a MODERATE (CVSS 6.8) mongodb driver extension affected by vulnerability (CWE-825: Expired Pointer Dereference) affecting Mongodb/mongodb extension libraries in the Packagist ecosystem. The issue involves mongodb driver extension affected by mongoc_bulk_operation_t's read of invalid memory. Remediation is available by upgrading affected packages to version 1.21.2.
CVE-2025-12119 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L).
How to Fix CVE-2025-12119
To remediate this vulnerability, upgrade all affected Mongodb/mongodb extension dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade mongodb/mongodb-extension to 1.21.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for mongodb/mongodb-extension
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-12119, inspect your project dependencies for Mongodb/mongodb extension:
inspect dependencies for mongodb/mongodb-extension
Analyze the terminal output to locate any version of Mongodb/mongodb extension in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.21.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-825: Expired Pointer Dereference, where the product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid. In Mongodb/mongodb extension, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-12119 Affected Mongodb/mongodb extension Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mongodb/mongodb-extension
|
Packagist |
< 1.21.2
|
1.21.2
|
References
Frequently Asked Questions
What is CVE-2025-12119?
Which Mongodb/mongodb extension versions are affected?
What version fixes CVE-2025-12119?
Is mongodb/mongodb-extension affected?
What is the CVSS score of CVE-2025-12119?
What CWE is associated with CVE-2025-12119?
How can I check Packagist dependencies for CVE-2025-12119?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mwcc-7vpp-xmv9",
"modified" : "2026-03-24T14:41:29Z",
"published" : "2025-11-19T00:31:24Z",
"aliases" : [ "CVE-2025-12119" ],
"summary" : "MongoDB driver extension affected by mongoc_bulk_operation_t's read of invalid memory",
"details" : "A mongoc_bulk_operation_t may read invalid memory if large options are passed.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "mongodb/mongodb-extension"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.21.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-12119"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-c-driver/commit/775998df7c67"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-php-driver/commit/fa5b43366407bc0e5b0a919ed374decd9022b2f9"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.6"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-c-driver/releases/tag/2.1.2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mongodb/mongo-php-driver"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.2"
}, {
"type" : "WEB",
"url" : "https://jira.mongodb.org/browse/PHPC-2637"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2026/01/msg00009.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-825" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-19T18:54:37Z",
"nvd_published_at" : "2025-11-18T22:15:45Z"
}
}