CVE-2025-0755: MongoDB C Driver bson library may be susceptible to buffer overflow

Published Mar 18, 2025
·
Updated

The various bsonappend functions in the MongoDB C driver library may be susceptible to buffer overflow when performing operations that could result in a final BSON document which exceeds the maximum allowable size (INT32MAX), resulting in a segmentation fault and possible application crash. This issue affected libbson versions prior to 1.27.5, MongoDB Server v8.0 versions prior to 8.0.1 and MongoDB Server v7.0 versions prior to 7.0.16

Affected Software

17 affected componentsFixes available
MongoDB libbson<1.27.5
MongoDB Server<8.0.1, <7.0.16
MongoDB libbson<1.27.5
MongoDB MongoDB>=7.0.0<7.0.16
MongoDB MongoDB=8.0.0
debian/libbson-xs-perl<0.8.4-2+deb12u1
0.8.4-2+deb12u1
debian/mongo-c-driver<1.23.1-1+deb12u1
1.23.1-1+deb12u1
debian/mongo-c-driver<1.27.5-1
1.27.5-1
debian/mongo-c-driver<1.27.5-1
1.27.5-1
debian/libbson-xs-perl
0.8.4-1+deb11u10.8.4-2+deb12u1
debian/mongo-c-driver
1.17.6-1+deb11u11.23.1-1+deb12u11.27.5-1
ubuntu/libbson-xs-perl*
ubuntu/mongo-c-driver*
ubuntu/libbson-xs-perl*
ubuntu/mongo-c-driver*
ubuntu/libbson-xs-perl*
ubuntu/mongo-c-driver<1.26.0-1.1ubuntu2+esm1
1.26.0-1.1ubuntu2+esm1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/mongo-c-driver to a version that resolves this vulnerability.

    Fixed in 1.26.0-1.1ubuntu2+esm1
  2. Upgrade

    Upgrade debian/libbson-xs-perl to a version that resolves this vulnerability.

    Fixed in 0.8.4-2+deb12u1
  3. Upgrade

    Upgrade debian/mongo-c-driver to a version that resolves this vulnerability.

    Fixed in 1.23.1-1+deb12u1
  4. Upgrade

    Upgrade debian/mongo-c-driver to a version that resolves this vulnerability.

    Fixed in 1.27.5-1
  5. Upgrade

    Upgrade debian/libbson-xs-perl to a version that resolves this vulnerability.

    Fixed in 0.8.4-1+deb11u1Fixed in 0.8.4-2+deb12u1
  6. Upgrade

    Upgrade debian/mongo-c-driver to a version that resolves this vulnerability.

    Fixed in 1.17.6-1+deb11u1Fixed in 1.23.1-1+deb12u1Fixed in 1.27.5-1
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.27.5
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.1
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.0.16

Event History

Mar 18, 2025
CVE Published
via MITRE·09:01 AM
Data Sourced
via MITRE·09:01 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·09:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeakness
Sep 22, 2025
Data Sourced
via NVD·06:32 PM
Affected Software
Updated
via NVD·06:32 PM
Severity
Dec 3, 2026
Updated
via OSV·08:48 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-0755?

CVE-2025-0755 is classified as a high severity vulnerability due to its potential to cause buffer overflow and segmentation faults.

2

How do I fix CVE-2025-0755?

To fix CVE-2025-0755, upgrade to versions of MongoDB Server and libbson that are later than 8.0.1 and 1.27.5 respectively.

3

What are the consequences of exploiting CVE-2025-0755?

Exploiting CVE-2025-0755 may lead to application crashes or unintended behavior due to the segmentation fault caused by buffer overflow.

4

Which versions of MongoDB are affected by CVE-2025-0755?

MongoDB Server versions prior to 8.0.1 and 7.0.16, as well as libbson versions before 1.27.5, are affected by CVE-2025-0755.

5

Are there any known exploits for CVE-2025-0755?

As of now, there are no known public exploits for CVE-2025-0755, but the vulnerability poses a significant risk if not addressed.

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