CVE-2024-5629Mongodb Pymongo
High 8.1 No auth needed
Follow: this CVE · Mongodb · Mongodb Pymongo We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Jun 5, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
What happens
An out-of-bounds read in the 'bson' module of PyMongo 4.6.2 or earlier allows deserialization of malformed BSON provided by a Server to raise an exception which may contain arbitrary application memory.
What to do
- Apply the vendor's security update for Pymongo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pymongo |
< 4.6.3 |
4.6.3 |
pip install "pymongo>=4.6.3" |
| PyPI | pymongo |
< 4.6.3 |
4.6.3 |
pip install "pymongo>=4.6.3" |
Per OSV / GitHub Advisories (GHSA-m87m-mmvp-v9qm, PYSEC-2026-1826). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mongodb | pymongo | < 4.6.3 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- jira.mongodb.org Issue Tracking Patch Third Party Advisory
- lists.debian.org Third Party Advisory
- lists.debian.org