Sploit.io - Search

Product: C Driver, version: >= 2.0.0, <= 2.1.1

CVE-2025-12119

Severity: Unknown

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

CVSS Score: N/A

Priority

B

CISA Data

EPSS Data

  • EPSS: 0.001850000
  • Percentile: 0.082300000
  • Date: 2026-06-23

ExploitDB

No data available.

HackerOne Data

  • Rank: 9889
  • Reports submitted count: 0
  • Unknown: 0
  • None: 0
  • Low: 0
  • Medium: 0
  • High: 0
  • Critical: 0

GitHub PoCs

    Nuclei Templates

    No data available.

    VulnCheck Data

    Affected Products:

    • MongoDB C Driver - Versions: 1.9.0, 2.0.0
    • MongoDB PHP Driver - Versions: 0

    References:

    Risk Assessment

    1. Risk Assessment
    The vulnerability, CVE-2025-12119, centers around a potential memory read issue within the mongoc_bulk_operation_t function when processing large options. This is categorized as a Medium severity vulnerability with a CVSS score of 6.8. The vulnerability stems from an expired pointer dereference (CWE-825), meaning the code might attempt to read from a memory location that is no longer valid. The attack vector is local, meaning an attacker needs some level of access to the system running the affected MongoDB driver. The likelihood of exploitation is moderate, given the local access requirement and the need to supply large options. However, the potential impact on confidentiality is high, as an attacker could potentially read sensitive data from memory. Integrity is currently assessed as none, meaning the data isn’t directly modified, and availability is low, as a crash or performance degradation is possible. Business impact could range from data breaches revealing sensitive customer or internal information to service disruptions affecting application performance and user experience. The EPSS score of 0.001850000 suggests a relatively low, but non-zero probability of exploitation in the wild.

    2. Potential Attack Scenarios
    An attacker with local access to a server running an application utilizing the affected MongoDB C or PHP driver could exploit this vulnerability. A potential attack scenario involves crafting a bulk write operation with exceptionally large options. For instance, an application processing user-submitted data could pass a large, potentially attacker-controlled option to the MongoDB driver during a bulk insert or update. This large option could trigger the memory read, allowing the attacker to read data from adjacent memory locations. If these adjacent memory locations contain sensitive data like database credentials, API keys, or application secrets, the attacker could compromise the system. The attacker could then use the compromised credentials or secrets to escalate privileges, access other systems, or exfiltrate data. The attack process involves: 1) Gaining local access to the system. 2) Crafting a bulk write operation with large options. 3) Submitting the operation to the MongoDB driver. 4) Analyzing the results, potentially observing a crash or being able to extract sensitive data via memory inspection.

    3. Mitigation Recommendations
    The primary mitigation for CVE-2025-12119 is to upgrade to the latest patched version of the affected MongoDB driver. Specifically:
    - For the C Driver, upgrade to version 1.30.6 or 2.1.2 or later.
    - For the PHP Driver, upgrade to version 1.21.2 or later.
    These upgrades can be obtained from the official MongoDB GitHub releases pages:
    - C Driver: https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.6 or https://github.com/mongodb/mongo-c-driver/releases/tag/2.1.2
    - PHP Driver: https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.2
    Regular vulnerability scanning should be employed to identify systems running vulnerable versions of the driver. Additionally, consider implementing robust input validation to limit the size of options passed to the MongoDB driver, reducing the likelihood of triggering the memory read. Monitor application logs for unusual behavior, such as crashes or performance degradation, which could indicate exploitation.

    4. Executive Summary
    CVE-2025-12119 is a medium-severity vulnerability affecting MongoDB C and PHP drivers. It could allow a local attacker to read sensitive data from system memory by crafting a bulk write operation with large options. This could lead to data breaches, compromising credentials or application secrets. While the exploit requires local access, the potential impact on confidentiality is high. We recommend upgrading to the latest patched versions of the MongoDB C Driver (1.30.6 or 2.1.2) and PHP Driver (1.21.2) as soon as possible to mitigate the risk. Prompt patching is crucial to protect sensitive data and ensure continued application availability. This vulnerability warrants attention as a potential data breach risk, especially in environments where the affected drivers are exposed to potentially malicious users or applications.