Application denial of service via out-of-bounds read in BSON Regex decoding in MongoDB Python Driver
The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_all API can cause the application process to terminate when the C extension is loaded. The driver's normal database wire-protocol path does not reach this code.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-106435
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 19:44 UTC · Revision 1
Source evidence
Application denial of service via out-of-bounds read in BSON Regex decoding in MongoDB Python Driver
core-osv · Original sourcePublished 8 Oct 2026, 20:12 UTC
The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_all API can cause the application process to terminate when the C extension is loaded. The driver's normal database wire-protocol path does not reach this code.
osv:CVE-2026-106435
Complete source record
{
"id": "76935fe3b2ded438628e7efc7edd8fbc4843db2e3c22ffe17f558e3a50476fe3",
"url": "https://osv.dev/vulnerability/CVE-2026-106435",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Application denial of service via out-of-bounds read in BSON Regex decoding in MongoDB Python Driver",
"summary": "The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_all API can cause the application process to terminate when the C extension is loaded. The driver's normal database wire-protocol path does not reach this code.",
"evidence": "osv:CVE-2026-106435",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-106435",
"aliases": [
"CVE-2026-106435",
"GHSA-98qm-wvgf-w4cf"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mongodb/mongo-python-driver",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5479af6315dea9bd575bb374f72b645dfacbb3c3"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mongodb:python_driver:*:*:*:*:*:mongodb:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.18.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"4.18.2",
"4.18.1",
"4.18.0",
"4.16.0",
"4.16.0.dev0",
"4.15.1",
"4.15.0",
"4.13.0",
"4.13.0.dev1",
"4.13.0.dev0",
"4.12.0",
"4.11",
"4.10.1",
"4.10.0",
"4.9.1",
"4.9",
"4.7.1",
"4.7.0",
"4.6.0",
"4.5.0",
"4.4.0",
"4.4.0b0",
"4.3.3",
"4.3.2",
"4.3.1",
"4.3.0",
"4.2.0",
"4.2.0b0",
"4.1.1",
"4.1.0",
"4.0",
"3.11.1",
"3.11.0",
"3.11.0rc0",
"3.11.0b1",
"3.11.0b0",
"3.10.1",
"3.10.0",
"3.9.0",
"3.9.0b1",
"3.9.0b0",
"3.7.0",
"3.7.0b0",
"3.6.1",
"3.6.0",
"3.6rc0",
"3.5.1",
"3.5.0",
"3.4.0",
"3.3.0",
"3.4rc0",
"3.2.2",
"3.2.1",
"3.2",
"3.2rc0",
"3.1.1",
"3.1",
"3.1rc0",
"3.0.3",
"3.0.2",
"3.0.1",
"3.0",
"3.0rc1",
"3.0rc0",
"3.0b1",
"3.0b0",
"2.7",
"2.7rc1",
"2.7rc0",
"2.6",
"2.5.1",
"2.5",
"2.4.2",
"2.4.1",
"2.4",
"2.3",
"2.3rc1",
"2.2.1",
"2.2",
"2.2rc1",
"2.1",
"2.1.1",
"2.0.1",
"2.0",
"1.11",
"1.10.1",
"1.10",
"1.9",
"1.8.1",
"1.8",
"1.7",
"1.6",
"1.5.1",
"1.5",
"1.4",
"1.3",
"1.2.1",
"1.2",
"1.1.2",
"1.1.1",
"1.1",
"1.0",
"0.16",
"0.15.2",
"0.15.1",
"0.15",
"0.14.2",
"0.14.1",
"0.14",
"0.13",
"0.12",
"0.11.3",
"0.11.2",
"0.11.1",
"0.11",
"0.10.3",
"0.10.2",
"0.10.1",
"0.10",
"0.9.5",
"0.9.4",
"0.9.3",
"0.9.2",
"0.9.1",
"0.9",
"0.8.1",
"0.8",
"0.7.2",
"0.7.1",
"0.7",
"0.6",
"0.5.3pre",
"0.5.2pre",
"0.5.1pre",
"0.5pre",
"0.4pre"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-106435.json"
}
}
],
"modified": "2026-10-28T02:30:38.734544464Z",
"provider": "osv",
"references": [
"https://jira.mongodb.org/browse/PYTHON-6110",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106435.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-106435"
],
"provider_metadata": {
"cwe_ids": [
"CWE-125"
],
"cna_assigner": "mongodb",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "0.10.3"
},
{
"last_affected": "4.18.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106435.json"
}
},
"related_cves": [
{
"value": "CVE-2026-106435",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506306,
"published_at": "2026-10-08T20:12:15.074+00:00"
}