# GHSA-76F6-683G-W69P: PYTHON-6256 Out-of-bounds read in BSON array decoding

- Database: GitHub
- Severity: CVSS 8.2 (High)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-135898](https://cve.now/CVE-2026-135898.md): MongoDB Python Driver out-of-bounds read in BSON array decoding in C extension

## Affected versions

- pymongo (PyPI): from 1.9.0, through 4.20.1

## Description

### Summary

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.

### Details

See https://jira.mongodb.org/browse/PYTHON-6256

### Proof of concept

See https://jira.mongodb.org/browse/PYTHON-6256 for full details.  Requires address-santizer-enabled version of CPython to generate the address sanitizer error.

### Impact

The read is out of bounds: 4 to 8 bytes past the input allocation. On default builds the over-read value is discarded and decode() raises InvalidBSON; under hardened allocators the read aborts the process.

## References

- https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-76f6-683g-w69p

Page: https://cve.now/GHSA-76F6-683G-W69P

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
