Vulnerabilities · 2024 · Mongodb
CVE-2024-5629
Mongodb Pymongo vulnerability
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.
Affected products
Pymongo, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mongodb Pymongo runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- jira.mongodb.org/browse/PYTHON-4305 · Patch
- lists.debian.org/debian-lts-announce/2024/06/msg00007.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2024/09/msg00032.html
- nvd.nist.gov/vuln/detail/CVE-2024-5629
- github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2
- gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03
- security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597
- github.com/advisories/GHSA-m87m-mmvp-v9qm
- nvd.nist.gov/vuln/detail/CVE-2024-5629
- cve.org/CVERecord?id=CVE-2024-5629
More vulnerabilities in Mongodb products
CVE-2025-14847CVE-2025-14345CVE-2025-13644CVE-2025-13643CVE-2025-13507CVE-2025-12893CVE-2025-12657CVE-2025-12119All 113
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.