THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-98qm-wvgf-w4cf (high) — MongoDB Python Driver: Out-of-bounds read in BSON decoding via a malformed Regex element

[GHSA] GHSA-98qm-wvgf-w4cf (high) — MongoDB Python Driver: Out-of-bounds read in BSON decoding via a malformed Regex element

medgithub_advisoriesPublished 2026-10-27

GHSA-98qm-wvgf-w4cf Severity: high CVE: CVE-2026-106435

MongoDB Python Driver: Out-of-bounds read in BSON decoding via a malformed Regex element

### Impact The C extension's BSON decoder scans a Regex element's pattern and flags strings with strlen before checking the document's remaining length, so a crafted truncated Regex element can read past the end of the caller's buffer. bson.decode and b

Indicators of compromise

Original source: https://github.com/advisories/GHSA-98qm-wvgf-w4cf