8.1
CWE
125
EPSS
0.087%
Advisory Published
CVE Published
Advisory Published
Updated

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

First published: Wed Jun 05 2024(Updated: )

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.

Credit: cna@mongodb.com cna@mongodb.com

Affected SoftwareAffected VersionHow to fix
pip/pymongo<4.6.3
4.6.3
debian/pymongo<=3.11.0-1
3.11.0-1+deb12u1
4.7.3-1
ubuntu/pymongo<3.6.1+dfsg1-1ubuntu0.1~
3.6.1+dfsg1-1ubuntu0.1~
ubuntu/pymongo<3.10.1-0ubuntu2.1
3.10.1-0ubuntu2.1
ubuntu/pymongo<3.11.0-1ubuntu0.22.04.1
3.11.0-1ubuntu0.22.04.1
ubuntu/pymongo<3.11.0-1ubuntu0.24.04.1
3.11.0-1ubuntu0.24.04.1
ubuntu/pymongo<3.2-1ubuntu0.1~
3.2-1ubuntu0.1~
MongoDB PyMongo<4.6.3
Debian GNU/Linux=10.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-5629?

    CVE-2024-5629 is classified as a high severity vulnerability due to its potential for arbitrary application memory exposure.

  • How do I fix CVE-2024-5629?

    To fix CVE-2024-5629, upgrade to PyMongo version 4.6.3 or later.

  • What causes CVE-2024-5629 in PyMongo?

    CVE-2024-5629 is caused by an out-of-bounds read in the 'bson' module that allows deserialization of malformed BSON.

  • Which versions of PyMongo are affected by CVE-2024-5629?

    Versions of PyMongo prior to 4.6.3 are affected by CVE-2024-5629.

  • Are there alternative ways to mitigate CVE-2024-5629?

    Users can limit the exposure of their applications to untrusted BSON data as an alternative mitigation strategy for CVE-2024-5629.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203