{"answers":{"affected":"3 open source packages ship an affected version, including pymongo. It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-5629 in the wild and no public exploit code.","fix":"Upgrade pymongo to 4.6.3 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-5629 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-5629 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pymongo (PyPI): affected all versions; fixed in 4.6.3\n- pymongo (PyPI): affected all versions; fixed in 4.6.3\n- pymongo (PyPI): affected all versions; fixed in 4.6.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-5629/ (Markdown: https://insights.sbomify.com/CVE-2024-5629/index.md)","id":"CVE-2024-5629","markdown":"https://insights.sbomify.com/CVE-2024-5629/index.md","name":"CVE-2024-5629","record":{"aliases":["ALSA-2025:8419","AZL-42682","AZL-42726","CLSA-2026-1772496669","CVE-2024-21506","DEBIAN-CVE-2024-5629","DLA-3832-1","DLA-3889-1","GHSA-m87m-mmvp-v9qm","PYSEC-2026-1826","RHSA-2025:8419","RLSA-2025:8419","ROOT-APP-PYPI-CVE-2024-5629","UBUNTU-CVE-2024-5629","USN-6904-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python MongoDB driver","requires_auth":"none","summary":"An out-of-bounds read in PyMongo's BSON module allows attackers to disclose arbitrary application memory via malformed server responses.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"pymongo","vendor":"mongodb"}],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"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.","ecosystems":["AlmaLinux:8","PyPI","Red Hat:enterprise_linux:8::appstream","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Out-of-bounds read in bson module of PyMongo","id":"CVE-2024-5629","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"information_disclosure","year":"2024"},"n_packages":92,"n_references":2,"next":{"headline":"Insert or Embed Articulate Content into WordPress \u003c 4.3000000024 - Author+ Arbitrary File Upload","id":"CVE-2024-5630"},"packages":[{"ecosystem":"PyPI","fixed":["4.6.3"],"introduced":["0"],"last_affected":[],"package":"pymongo","purl":null,"source":"GHSA-m87m-mmvp-v9qm"},{"ecosystem":"PyPI","fixed":["4.6.3"],"introduced":["0"],"last_affected":[],"package":"pymongo","purl":"pkg:pypi/pymongo","source":"GHSA-m87m-mmvp-v9qm"},{"ecosystem":"PyPI","fixed":["4.6.3"],"introduced":["0"],"last_affected":[],"package":"pymongo","purl":"pkg:pypi/pymongo","source":"PYSEC-2026-1826"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.7-31.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python-nose-docs","purl":"pkg:rpm/almalinux/python-nose-docs","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-2.module_el8.10.0+3998+2cf36268"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-doc","purl":"pkg:rpm/almalinux/python-pymongo-doc","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.2-3.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python-sqlalchemy-doc","purl":"pkg:rpm/almalinux/python-sqlalchemy-doc","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["15.1.0-23.module_el8.10.0+3937+b6a3652f"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv-doc","purl":"pkg:rpm/almalinux/python-virtualenv-doc","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.1-2.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-PyMySQL","purl":"pkg:rpm/almalinux/python3-PyMySQL","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-2.module_el8.10.0+3998+2cf36268"],"introduced":["0"],"last_affected":[],"package":"python3-bson","purl":"pkg:rpm/almalinux/python3-bson","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-2.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-distro","purl":"pkg:rpm/almalinux/python3-distro","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.7-2.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-docs","purl":"pkg:rpm/almalinux/python3-docs","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["0.14-12.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-docutils","purl":"pkg:rpm/almalinux/python3-docutils","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.7-31.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-nose","purl":"pkg:rpm/almalinux/python3-nose","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["2.2.0-22.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-pygments","purl":"pkg:rpm/almalinux/python3-pygments","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-2.module_el8.10.0+3998+2cf36268"],"introduced":["0"],"last_affected":[],"package":"python3-pymongo","purl":"pkg:rpm/almalinux/python3-pymongo","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-2.module_el8.10.0+3998+2cf36268"],"introduced":["0"],"last_affected":[],"package":"python3-pymongo-gridfs","purl":"pkg:rpm/almalinux/python3-pymongo-gridfs","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.0-21.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-scipy","purl":"pkg:rpm/almalinux/python3-scipy","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.2-3.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python3-sqlalchemy","purl":"pkg:rpm/almalinux/python3-sqlalchemy","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["15.1.0-23.module_el8.10.0+3937+b6a3652f"],"introduced":["0"],"last_affected":[],"package":"python3-virtualenv","purl":"pkg:rpm/almalinux/python3-virtualenv","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["1:0.31.1-3.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-wheel","purl":"pkg:rpm/almalinux/python3-wheel","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["1:0.31.1-3.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-wheel-wheel","purl":"pkg:rpm/almalinux/python3-wheel-wheel","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36","purl":"pkg:rpm/almalinux/python36","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36-debug","purl":"pkg:rpm/almalinux/python36-debug","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36-devel","purl":"pkg:rpm/almalinux/python36-devel","source":"ALSA-2025:8419"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36-rpm-macros","purl":"pkg:rpm/almalinux/python36-rpm-macros","source":"ALSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.1-2.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-PyMySQL","purl":"pkg:rpm/redhat/python-PyMySQL","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-2.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-distro","purl":"pkg:rpm/redhat/python-distro","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.7-2.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-docs","purl":"pkg:rpm/redhat/python-docs","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.14-12.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-docutils","purl":"pkg:rpm/redhat/python-docutils","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.7-31.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-nose","purl":"pkg:rpm/redhat/python-nose","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.7-31.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-nose-docs","purl":"pkg:rpm/redhat/python-nose-docs","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.2.0-22.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-pygments","purl":"pkg:rpm/redhat/python-pygments","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-2.module+el8.10.0+23071+07f1d18e"],"introduced":["0"],"last_affected":[],"package":"python-pymongo","purl":"pkg:rpm/redhat/python-pymongo","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-2.module+el8.10.0+23071+07f1d18e"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-debuginfo","purl":"pkg:rpm/redhat/python-pymongo-debuginfo","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-2.module+el8.10.0+23071+07f1d18e"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-debugsource","purl":"pkg:rpm/redhat/python-pymongo-debugsource","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-2.module+el8.10.0+23071+07f1d18e"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-doc","purl":"pkg:rpm/redhat/python-pymongo-doc","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.2-3.module+el8.10.0+20981+3704b446"],"introduced":["0"],"last_affected":[],"package":"python-sqlalchemy","purl":"pkg:rpm/redhat/python-sqlalchemy","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.2-3.module+el8.10.0+20981+3704b446"],"introduced":["0"],"last_affected":[],"package":"python-sqlalchemy-doc","purl":"pkg:rpm/redhat/python-sqlalchemy-doc","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:15.1.0-23.module+el8.10.0+22619+61b70790"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv","purl":"pkg:rpm/redhat/python-virtualenv","source":"RHSA-2025:8419"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:15.1.0-23.module+el8.10.0+22619+61b70790"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv-doc","purl":"pkg:rpm/redhat/python-virtualenv-doc","source":"RHSA-2025:8419"}],"prev":{"headline":"Cross-site scripting in Avada (Fusion) Builder","id":"CVE-2024-5628"},"products":["PyMongo"],"published":"2024-06-05","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["MongoDB Inc"]},"summary":"An out-of-bounds read in PyMongo's BSON module allows attackers to disclose arbitrary application memory via malformed server responses.","url":"https://insights.sbomify.com/CVE-2024-5629/"}