CVE-2024-5629
HIGH 8.1CVSS 3.1PyMongo Out-of-bounds Read in the bson module
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.
- Published
- 5 Jun 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Modified
- Weakness
- CWE-125
- Also known as
- GHSA-m87m-mmvp-v9qmPYSEC-2026-1826
- Sources
- NVDJSONOSV GHSA-m87m-mmvp-v9qmJSONOSV PYSEC-2026-1826JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | pymongocpe:2.3:a:mongodb:pymongo:*:*:*:*:*:*:*:* |
< 4.6.3 | 4.6.3 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | pymongo | < 4.6.3 | 4.6.3 |
References
- https://jira.mongodb.org/browse/PYTHON-4305 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/06/msg00007.html · Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/09/msg00032.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-5629 · ADVISORY
- https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2 · WEB
- https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03 · WEB
- https://github.com/mongodb/mongo-python-driver · PACKAGE
- https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597 · WEB
- https://pypi.org/project/pymongo · PACKAGE
- https://github.com/advisories/GHSA-m87m-mmvp-v9qm · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 5 Jun 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Jun 2024)