cve.bz

CVE-2024-5629 Out-of-bounds Read

8.1 highEPSS 0.7%Fix available

High (8.1). EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in pymongo 4.6.3.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-06-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-5629 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-5629?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-5629?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-5629 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MongoDB Inc PyMongothrough 4.6.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m87m-mmvp-v9qmPyPIpymongo<4.6.34.6.3
PYSEC-2026-1826PyPIpymongo<4.6.34.6.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10pymongo3.7.1-1.1+deb10u1DLA-3832-1
Debian11pymongo3.11.0-1+deb11u1DLA-3889-1
Debian12pymongo3.11.0-1+deb12u1DEBIAN-CVE-2024-5629
Debian13, 14pymongo4.7.3-1DEBIAN-CVE-2024-5629
Ubuntu14.04:LTSpymongono fix listedUBUNTU-CVE-2024-5629
Ubuntu20.04:LTSpymongo3.10.1-0ubuntu2.1UBUNTU-CVE-2024-5629 USN-6904-1
Ubuntu22.04:LTSpymongo3.11.0-1ubuntu0.22.04.1UBUNTU-CVE-2024-5629 USN-6904-1
Ubuntu24.04:LTSpymongo3.11.0-1ubuntu0.24.04.1UBUNTU-CVE-2024-5629 USN-6904-1
UbuntuPro:16.04:LTSpymongo3.2-1ubuntu0.1~esm1UBUNTU-CVE-2024-5629 USN-6904-1
UbuntuPro:18.04:LTSpymongo3.6.1+dfsg1-1ubuntu0.1~esm1UBUNTU-CVE-2024-5629 USN-6904-1
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python3-PyMySQL0:0.10.1-2.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-distro, python3-distro0:1.4.0-2.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-docs, python3-docs0:3.6.7-2.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-docutils, python3-docutils0:0.14-12.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-nose, python3-nose, python-nose-docs0:1.3.7-31.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-pygments, python3-pygments0:2.2.0-22.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-sqlalchemy, python3-sqlalchemy, python-sqlalchemy-doc0:1.3.2-3.module+el8.10.0+20981+3704b446RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-virtualenv, python3-virtualenv, python-virtualenv-doc0:15.1.0-23.module+el8.10.0+22619+61b70790RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython-wheel, python3-wheel, python3-wheel-wheel1:0.31.1-3.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython3-bson, python-pymongo, python3-pymongo and 6 more0:3.7.0-2.module+el8.10.0+23071+07f1d18eRHSA-2025:8419
Red Hatenterprise_linux:8::appstreampython36, python36-debug, python36-devel and 1 more0:3.6.8-39.module+el8.10.0+20784+edafcd43RHSA-2025:8419
Red Hatenterprise_linux:8::appstreamscipy, python3-scipy, scipy-debugsource and 1 more0:1.0.0-21.module+el8.10.0+20784+edafcd43RHSA-2025:8419
AlmaLinux8python3-PyMySQL0.10.1-2.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python3-bson, python3-pymongo, python-pymongo-doc and 1 more3.7.0-2.module_el8.10.0+3998+2cf36268ALSA-2025:8419
AlmaLinux8python3-distro1.4.0-2.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python3-docs3.6.7-2.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python3-docutils0.14-12.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python3-nose, python-nose-docs1.3.7-31.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python3-pygments2.2.0-22.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python3-scipy1.0.0-21.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python3-sqlalchemy, python-sqlalchemy-doc1.3.2-3.module_el8.10.0+3769+3838165bALSA-2025:8419
AlmaLinux8python3-virtualenv, python-virtualenv-doc15.1.0-23.module_el8.10.0+3937+b6a3652fALSA-2025:8419
AlmaLinux8python3-wheel, python3-wheel-wheel1:0.31.1-3.module_el8.9.0+3700+efebe9fdALSA-2025:8419
AlmaLinux8python36, python36-debug, python36-devel and 1 more3.6.8-39.module_el8.10.0+3769+3838165bALSA-2025:8419
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1582+bc278001RLSA-2025:8419
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1592+61442852RLSA-2025:8419
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1860+afcc1c71RLSA-2025:8419
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1910+234ad790RLSA-2025:8419
Rocky Linux8python-distro0:1.4.0-2.module+el8.10.0+1592+61442852RLSA-2025:8419
Rocky Linux8python-distro0:1.4.0-2.module+el8.10.0+1910+234ad790RLSA-2025:8419
Rocky Linux8python-docs0:3.6.7-2.module+el8.10.0+1592+61442852RLSA-2025:8419
Rocky Linux8python-docs0:3.6.7-2.module+el8.10.0+1910+234ad790RLSA-2025:8419
Rocky Linux8python-docutils0:0.14-12.module+el8.10.0+1592+61442852RLSA-2025:8419
Rocky Linux8python-docutils0:0.14-12.module+el8.10.0+1910+234ad790RLSA-2025:8419
Rocky Linux8python-docutils0:0.14-12.module+el8.9.0+1531+a18208f5RLSA-2025:8419
Rocky Linux8python-nose0:1.3.7-31.module+el8.10.0+1592+61442852RLSA-2025:8419
16 more for Rocky Linux in the JSON.
Azure Linux2python-pymongono fix listedAZL-42682
Azure Linux3python-pymongono fix listedAZL-42726

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Only RHEL-8 is impacted by this vulnerability as `python-pymongo` is not packaged in RHEL-7 or RHEL-9.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python36:3.6-8100020250430074622.4c5117adFixed 2025-06-03RHSA-2025:8419
Red Hat Enterprise Linux 8python27:2.7/python-pymongoFix deferred
Red Hat OpenStack Platform 16.1openstack-pankoFix deferred
Red Hat OpenStack Platform 16.2openstack-pankoFix deferred
Red Hat OpenStack Platform 17.1python-pymongoFix deferred
Red Hat Satellite 6python-pymongoNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-5629.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON