Advisory record · GHSA-v4x9-3549-crwv

PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding

CVSS 7.5 HighEPSS 0.0019 · 8th percentile

Published by the GitHub Advisory Database at 5 Oct 2026, 23:47 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pymongoPyPI<4.18.24.18.2
Identifiers
GHSA-v4x9-3549-crwv · CVE-2026-96749 · PYSEC-2026-4296
Weakness (CWE)
CWE-190
Published
5 Oct 2026
Updated
15 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Versions of pymongo before 4.18.2 are affected by a heap out-of-bounds write in the BSON document encoder of the bundled native extension. The flaw is a signed 32-bit size overflow on very large caller-supplied data, and the overflow guard relies on undefined C behavior. An unprivileged party who can supply a very large value that the application encodes may trigger a write outside an allocated buffer in the application process, depending on how the extension was built. Upgrade to pymongo 4.18.2 or later; the source lists no other workaround.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 4.0 CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CNA (mongodb)
  • CISA KEV Not listed.
  • EPSS 0.0019, the 8th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:08 UTC First seen by agentprime
  2. 31 Oct 2026, 14:08 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.