CVE-2024-5629 Out-of-bounds read in bson module of PyMongo
An out-of-bounds read in PyMongo's BSON module allows attackers to disclose arbitrary application memory via malformed server responses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-5629?
CVE-2024-5629 is a medium-severity vulnerability in Debian Debian Linux, published on 5 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-125
Which versions are affected by CVE-2024-5629?
3 open source packages ship an affected version, including pymongo. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
pymongo PyPI | All versions | 4.6.3 |
pymongo PyPI | All versions | 4.6.3 |
pymongo PyPI | All versions | 4.6.3 |
Linux distribution packages (37)
python-nose-docs AlmaLinux:8 | All versions | 1.3.7-31.module_el8.9.0+3700+efebe9fd |
python-pymongo-doc AlmaLinux:8 | All versions | 3.7.0-2.module_el8.10.0+3998+2cf36268 |
python-sqlalchemy-doc AlmaLinux:8 | All versions | 1.3.2-3.module_el8.10.0+3769+3838165b |
python-virtualenv-doc AlmaLinux:8 | All versions | 15.1.0-23.module_el8.10.0+3937+b6a3652f |
python3-PyMySQL AlmaLinux:8 | All versions | 0.10.1-2.module_el8.9.0+3700+efebe9fd |
python3-bson AlmaLinux:8 | All versions | 3.7.0-2.module_el8.10.0+3998+2cf36268 |
python3-distro AlmaLinux:8 | All versions | 1.4.0-2.module_el8.9.0+3700+efebe9fd |
python3-docs AlmaLinux:8 | All versions | 3.6.7-2.module_el8.9.0+3700+efebe9fd |
python3-docutils AlmaLinux:8 | All versions | 0.14-12.module_el8.9.0+3700+efebe9fd |
python3-nose AlmaLinux:8 | All versions | 1.3.7-31.module_el8.9.0+3700+efebe9fd |
python3-pygments AlmaLinux:8 | All versions | 2.2.0-22.module_el8.9.0+3700+efebe9fd |
python3-pymongo AlmaLinux:8 | All versions | 3.7.0-2.module_el8.10.0+3998+2cf36268 |
python3-pymongo-gridfs AlmaLinux:8 | All versions | 3.7.0-2.module_el8.10.0+3998+2cf36268 |
python3-scipy AlmaLinux:8 | All versions | 1.0.0-21.module_el8.9.0+3700+efebe9fd |
python3-sqlalchemy AlmaLinux:8 | All versions | 1.3.2-3.module_el8.10.0+3769+3838165b |
python3-virtualenv AlmaLinux:8 | All versions | 15.1.0-23.module_el8.10.0+3937+b6a3652f |
python3-wheel AlmaLinux:8 | All versions | 1:0.31.1-3.module_el8.9.0+3700+efebe9fd |
python3-wheel-wheel AlmaLinux:8 | All versions | 1:0.31.1-3.module_el8.9.0+3700+efebe9fd |
python36 AlmaLinux:8 | All versions | 3.6.8-39.module_el8.10.0+3769+3838165b |
python36-debug AlmaLinux:8 | All versions | 3.6.8-39.module_el8.10.0+3769+3838165b |
python36-devel AlmaLinux:8 | All versions | 3.6.8-39.module_el8.10.0+3769+3838165b |
python36-rpm-macros AlmaLinux:8 | All versions | 3.6.8-39.module_el8.10.0+3769+3838165b |
python-PyMySQL Red Hat:enterprise_linux:8::appstream | All versions | 0:0.10.1-2.module+el8.10.0+20784+edafcd43 |
python-distro Red Hat:enterprise_linux:8::appstream | All versions | 0:1.4.0-2.module+el8.10.0+20784+edafcd43 |
python-docs Red Hat:enterprise_linux:8::appstream | All versions | 0:3.6.7-2.module+el8.10.0+20784+edafcd43 |
python-docutils Red Hat:enterprise_linux:8::appstream | All versions | 0:0.14-12.module+el8.10.0+20784+edafcd43 |
python-nose Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.7-31.module+el8.10.0+20784+edafcd43 |
python-nose-docs Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.7-31.module+el8.10.0+20784+edafcd43 |
python-pygments Red Hat:enterprise_linux:8::appstream | All versions | 0:2.2.0-22.module+el8.10.0+20784+edafcd43 |
python-pymongo Red Hat:enterprise_linux:8::appstream | All versions | 0:3.7.0-2.module+el8.10.0+23071+07f1d18e |
python-pymongo-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:3.7.0-2.module+el8.10.0+23071+07f1d18e |
python-pymongo-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:3.7.0-2.module+el8.10.0+23071+07f1d18e |
python-pymongo-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:3.7.0-2.module+el8.10.0+23071+07f1d18e |
python-sqlalchemy Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.2-3.module+el8.10.0+20981+3704b446 |
python-sqlalchemy-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:1.3.2-3.module+el8.10.0+20981+3704b446 |
python-virtualenv Red Hat:enterprise_linux:8::appstream | All versions | 0:15.1.0-23.module+el8.10.0+22619+61b70790 |
python-virtualenv-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:15.1.0-23.module+el8.10.0+22619+61b70790 |
Products include Debian Debian Linux, Mongodb Pymongo.
How do I fix CVE-2024-5629?
Upgrade pymongo to 4.6.3 or later.
Is CVE-2024-5629 being exploited?
There is no known exploitation of CVE-2024-5629 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALSA-2025:8419, AZL-42682, AZL-42726, CLSA-2026-1772496669, CVE-2024-21506, DEBIAN-CVE-2024-5629 and 9 more.