CVE-2025-12119: Mongodb/mongodb extension MongoDB Driver Extension Affected By Vulnerability

MODERATE
Advisory Identifier: GHSA-mwcc-7vpp-xmv9
CVSS 6.8
CWE-825
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-12119
GHSA Identifier GHSA-mwcc-7vpp-xmv9
Severity MODERATE
CVSS v3.1 Base Score 6.8
CWE Classification CWE-825: Expired Pointer Dereference
Affected Product Mongodb/mongodb extension
Package Ecosystem Packagist
Published Date
Last Updated

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability Low (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.

mongodb/mongodb-extension fixed: 1.21.2
Upgrade mongodb/mongodb-extension to 1.21.2
Verify Direct and Transitive Dependencies

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

A mongoc_bulk_operation_t may read invalid memory if large options are passed.

CVE-2025-12119 Affected Mongodb/mongodb extension Versions

1 component(s)
Fixed Versions:
1.21.2
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?
CVE-2025-12119 is a security vulnerability in Mongodb/mongodb extension involving MongoDB driver extension affected by mongoc_bulk_operation_t's read of invalid memory under CWE-825: Expired Pointer Dereference.
Which Mongodb/mongodb extension versions are affected?
Affected versions include releases prior to 1.21.2 across affected packages: mongodb/mongodb-extension.
What version fixes CVE-2025-12119?
Upgrading to 1.21.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mongodb/mongodb-extension affected?
Yes, mongodb/mongodb-extension is affected in releases prior to 1.21.2. Upgrade your dependency to 1.21.2 or later.
What is the CVSS score of CVE-2025-12119?
CVE-2025-12119 has a CVSS v3.1 base score of 6.8 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L.
What CWE is associated with CVE-2025-12119?
CVE-2025-12119 is classified under CWE-825: Expired Pointer Dereference (The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.).
How can I check Packagist dependencies for CVE-2025-12119?
Run the dependency tree command: 'inspect dependencies for mongodb/mongodb-extension'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}