GHSA-86gh-39m5-hhg6

Suggest an improvement
Source
https://github.com/advisories/GHSA-86gh-39m5-hhg6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-86gh-39m5-hhg6/GHSA-86gh-39m5-hhg6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-86gh-39m5-hhg6
Downstream
CGA (34)
Withdrawn
2026-10-27T15:36:26Z
Published
2026-10-08T21:33:28Z
Modified
2026-10-27T15:47:24Z
Severity
  • 5.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 5.9 (Medium) CVSS_V4 - 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
Duplicate Advisory: PYTHON-6110 Out-of-bounds read in BSON decoding via a malformed Regex element
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-98qm-wvgf-w4cf. This link is maintained to preserve external references.

Original Description

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.

Database specific
{
    "cwe_ids":  [
        "CWE-125"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-27T15:36:26Z",
    "nvd_published_at":  "2026-10-08T21:17:51Z",
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / pymongo

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.9.0
Last Affected
4.18.2

Affected versions

3.*
3.9.0
3.10.0
3.10.1
3.11.0
3.11.1
3.11.2
3.11.3
3.11.4
3.12.0
3.12.1
3.12.2
3.12.3
3.13.0
4.*
4.0
4.0.1
4.0.2
4.1.0
4.1.1
4.2.0
4.3.2
4.3.3
4.4.0b0
4.4.0
4.4.1
4.5.0
4.6.0
4.6.1
4.6.2
4.6.3
4.7.0
4.7.1
4.7.2
4.7.3
4.8.0b0
4.8.0
4.9
4.9.1
4.9.2
4.10.0
4.10.1
4.11
4.11.1
4.11.2
4.11.3
4.12.0
4.12.1
4.13.0.dev0
4.13.0
4.13.1
4.13.2
4.14.0
4.14.1
4.15.0
4.15.1
4.15.2
4.15.3
4.15.4
4.15.5
4.16.0.dev0
4.16.0
4.17.0
4.18.0
4.18.1
4.18.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-86gh-39m5-hhg6/GHSA-86gh-39m5-hhg6.json"