CVE-2026-135898 in Python Driverinfo

Summary

by MITRE • 11/25/2026

An out-of-bounds read in the native C BSON decoding extension of the MongoDB Python Driver may allow an unauthenticated party who can supply crafted BSON data to the decoder to cause the application process to terminate. In some configurations, nearby process memory may be included in error messages, which may result in limited unintended disclosure of data.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified involves a critical out-of-bounds read flaw within the native C-based Binary JSON extension used by the MongoDB Python Driver for decoding BSON data. This specific component is responsible for parsing incoming binary data structures into objects that can be processed by the application logic. The root cause of this issue lies in insufficient boundary checks during the deserialization process, where the decoder fails to verify that the length or offset values specified within a crafted BSON payload do not exceed the allocated buffer size. When an attacker supplies malformed BSON data containing manipulated field lengths or offsets pointing beyond the end of the input stream, the C extension attempts to read memory locations outside the valid range. This behavior is classified under CWE-125 as Out-of-bounds Read, representing a fundamental failure in input validation and bounds checking that compromises the integrity of the application's execution environment.

The operational impact of this vulnerability manifests primarily through denial of service conditions for applications relying on the affected driver version. Because the out-of-bounds read triggers undefined behavior within the native C code, it frequently results in segmentation faults or core dumps, causing the Python process to terminate abruptly. This disruption prevents legitimate users from accessing services and can lead to significant downtime if automated restart mechanisms are not configured with appropriate health checks. Furthermore, depending on the specific memory layout of the host system at the time of exploitation, this flaw may facilitate limited information disclosure. The error handling routines in some configurations inadvertently include nearby process memory contents within their output or log messages before crashing. This side channel effect allows an unauthenticated attacker who can supply crafted BSON data to potentially view sensitive information residing adjacent to the buffer in memory, such as stack variables or other application state data, thereby violating confidentiality requirements.

From a threat modeling perspective, this vulnerability aligns with ATT&CK technique T1059 Command and Scripting Interpreter if leveraged for further exploitation, although its primary immediate effect is denial of service via process termination. The attack vector requires the ability to supply crafted BSON data to the decoder, which implies that any network-facing endpoint accepting MongoDB-compatible queries or updates without proper authentication or input sanitization is at risk. This scenario highlights the dangers of trusting unvalidated external inputs in high-performance native extensions where memory safety guarantees are not enforced by a garbage collector as they would be in pure Python code. The combination of potential denial of service and information leakage creates a multi-faceted threat that undermines both availability and confidentiality pillars of security.

To mitigate this vulnerability, organizations must immediately upgrade the MongoDB Python Driver to a patched version where the native C extension has been updated with rigorous bounds checking logic during BSON decoding operations. Developers should also implement defense-in-depth strategies by validating input data at higher application layers before it reaches the database driver layer. Additionally, enabling strict logging and monitoring for abnormal process terminations can aid in detecting potential exploitation attempts. It is crucial to ensure that error messages do not expose raw memory contents or stack traces containing sensitive internal state information, thereby reducing the risk of unintended data disclosure even if a crash occurs. Regular security audits focusing on input validation patterns in native code extensions are recommended to prevent similar out-of-bounds access issues in future development cycles.

Responsible

Mongodb

Reservation

11/24/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00598

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!