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

Published Jul 2, 2024
·
Updated

The bsonstrfreev 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

Affected Software

2 affected components
MongoDB libbson<1.26.2
MongoDB libbson<1.26.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libbson to a version that resolves this vulnerability.

    Fixed in 1.26.2

Event History

Jul 2, 2024
CVE Published
via MITRE·05:14 PM
Data Sourced
via MITRE·05:14 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203