# CVE-2024-5629: Out-of-bounds read in bson module of PyMongo

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-06-05 · Modified: 2025-02-13
- Aliases: GHSA-m87m-mmvp-v9qm, PYSEC-2026-1826, RHSA-2025:8419, UBUNTU-CVE-2024-5629, USN-6904-1, DEBIAN-CVE-2024-5629, DLA-3832-1, DLA-3889-1, CGA-p974-5cjh-jpq7
- Record: https://cvemate.com/vulnerability/CVE-2024-5629 · JSON: https://cvemate.com/vulnerability/CVE-2024-5629/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- EPSS: 0.663%, percentile 53.094%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 47)

- chainguard kubeflow-pipelines-visualization-server (Chainguard): \< 2.2.0-r0
- wolfi kubeflow-pipelines-visualization-server (Wolfi): \< 2.2.0-r0
- debian pymongo (Debian): \< 3.11.0-1+deb12u1 \| \< 4.7.3-1 \| \< 3.7.1-1.1+deb10u1 \| \< 3.11.0-1+deb11u1
- ubuntu pymongo (Ubuntu): All versions (No fix recorded) \| \< 2.6.3-1ubuntu0.1~esm1 \| \< 3.2-1ubuntu0.1~esm1 \| \< 3.6.1+dfsg1-1ubuntu0.1~esm1 \| \< 3.10.1-0ubuntu2.1 \| \< 3.11.0-1ubuntu0.22.04.1 \| \< 3.11.0-1ubuntu0.24.04.1
- debian debian\_linux: 10.0
- mongodb inc pymongo: ≤ 4.6.2
- mongodb pymongo: \< 4.6.3
- PyPI pymongo (PyPI): \< 4.6.3
- redhat python-distro (Red Hat): \< 0:1.4.0-2.module+el8.10.0+20784+edafcd43
- redhat python-docs (Red Hat): \< 0:3.6.7-2.module+el8.10.0+20784+edafcd43
- redhat python-docutils (Red Hat): \< 0:0.14-12.module+el8.10.0+20784+edafcd43
- redhat python-nose (Red Hat): \< 0:1.3.7-31.module+el8.10.0+20784+edafcd43
- redhat python-nose-docs (Red Hat): \< 0:1.3.7-31.module+el8.10.0+20784+edafcd43
- redhat python-pygments (Red Hat): \< 0:2.2.0-22.module+el8.10.0+20784+edafcd43
- redhat python-pymongo (Red Hat): \< 0:3.7.0-2.module+el8.10.0+23071+07f1d18e
- redhat python-pymongo-debuginfo (Red Hat): \< 0:3.7.0-2.module+el8.10.0+23071+07f1d18e
- redhat python-pymongo-debugsource (Red Hat): \< 0:3.7.0-2.module+el8.10.0+23071+07f1d18e
- redhat python-pymongo-doc (Red Hat): \< 0:3.7.0-2.module+el8.10.0+23071+07f1d18e
- redhat python-PyMySQL (Red Hat): \< 0:0.10.1-2.module+el8.10.0+20784+edafcd43
- redhat python-sqlalchemy (Red Hat): \< 0:1.3.2-3.module+el8.10.0+20981+3704b446

## References (first 20 of 21)

- <https://jira.mongodb.org/browse/PYTHON-4305>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00007.html>
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00032.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5629>
- <https://github.com/mongodb/mongo-python-driver/commit/56b6b6dbc267d365d97c037082369dabf37405d2>
- <https://gist.github.com/keltecc/62a7c2bf74a997d0a7b48a0ff3853a03>
- <https://github.com/mongodb/mongo-python-driver>
- <https://security.snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597>
- <https://pypi.org/project/pymongo>
- <https://github.com/advisories/GHSA-m87m-mmvp-v9qm>
- <https://access.redhat.com/errata/RHSA-2025:8419>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2290585>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_8419.json>
- <https://access.redhat.com/security/cve/CVE-2024-5629>
- <https://www.cve.org/CVERecord?id=CVE-2024-5629>
- <https://ubuntu.com/security/CVE-2024-5629>
- <https://ubuntu.com/security/notices/USN-6904-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-5629>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5629.json>

---

Data as of 2026-12-05T04:58:59.136Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
