CWE
680 190
EPSS
0.043%
Advisory Published
Updated

CVE-2024-6381: MongoDB C Driver bson_strfreev may be susceptible to integer overflow

First published: Tue Jul 02 2024(Updated: )

The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2

Credit: cna@mongodb.com

Affected SoftwareAffected VersionHow to fix
MongoDB LibBson<1.26.2

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.

Frequently Asked Questions

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

    CVE-2024-6381 has a high severity rating due to the risk of memory corruption from integer overflow.

  • How do I fix CVE-2024-6381?

    To fix CVE-2024-6381, update the MongoDB C driver library to version 1.26.2 or later.

  • Which versions of libbson are affected by CVE-2024-6381?

    All versions of libbson prior to 1.26.2 are affected by CVE-2024-6381.

  • What is the impact of CVE-2024-6381?

    The impact of CVE-2024-6381 includes potential memory corruption due to improper handling of memory free operations.

  • Is CVE-2024-6381 related to any specific function?

    Yes, CVE-2024-6381 specifically affects the bson_strfreev function in the MongoDB C driver library.

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