CVE-2024-5629
Summary
It was discovered that PyMongo incorrectly handled malformed BSON data received from a server. A malicious server could possibly use this issue to obtain sensitive information from application memory. This issue only affected Ubuntu 14.04 LTS. (CVE-2024-5629) It was discovered that PyMongo incorrectly handled file identifiers in GridFS, which could cause them to be interpreted as query conditions…
Severity breakdown
High · 8.1
An attacker without an account can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and availability, none on integrity
Weakness
- CWE-125: Out-of-bounds Read
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB Inc PyMongo | ≤ 4.6.2 | — |
References by type
Patches and fixed releases
Other references
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2024-5629?
It was discovered that PyMongo incorrectly handled malformed BSON data received from a server. A malicious server could possibly use this issue to obtain sensitive information from application memory. This issue only affected Ubuntu 14.04 LTS. (CVE-2024-5629) It was discovered that PyMongo incorrectly handled file identifiers in GridFS, which could cause them to be interpreted as query conditions… Weakness type: Out-of-bounds Read (CWE-125).
How severe is CVE-2024-5629?
CVE-2024-5629 has a CVSS 3.1 base score of 8.1 (high), from NVD. An attacker without an account can exploit this over the network if a user is tricked into an action.
Is CVE-2024-5629 being exploited?
Not as far as is known: CVE-2024-5629 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2024-5629?
MongoDB Inc PyMongo ≤ 4.6.2.
How do I fix CVE-2024-5629?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.
Timeline & sources
References
Related vulnerabilities & news
- USN-9450-1: matio vulnerabilities
- CVE-2026-136612 — Red Hat OpenShift Service Mesh 3.2
- Ubuntu Issues Security Update for SQLite, Fixing 10 Vulnerabilities in 24.04 LTS
- Ubuntu Netatalk Vulnerabilities Impact Multiple LTS Releases
- Ubuntu Patches Multiple mpv Vulnerabilities in USN-9455-1, Including a 2026 Playlist Flaw