CVE-2025-40906: BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities

Published May 16, 2025
·
Updated

BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities.

Those include CVE-2017-14227, CVE-2018-16790, CVE-2023-0437, CVE-2024-6381, CVE-2024-6383, and CVE-2025-0755.

BSON-XS was the official Perl XS implementation of MongoDB's BSON serialization, but this distribution has reached its end of life as of August 13, 2020 and is no longer supported.

Affected Software

1 affected component
MongoDB BSON::XS<=0.8.4

Remediation

Information

Manually remove the bundled version of libbson, update the "bson" folder with an up-to-date version of libbson's source code and try building against it.

Information

Consider using a security patched version of BSON::XS from a downstream packager or OS distribution.

Event History

May 16, 2025
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-40906?

CVE-2025-40906 is considered a critical vulnerability due to its association with multiple known security issues in BSON::XS.

2

How do I fix CVE-2025-40906?

To mitigate CVE-2025-40906, update BSON::XS to version 0.8.5 or later.

3

What vulnerabilities are associated with CVE-2025-40906?

CVE-2025-40906 is associated with multiple vulnerabilities including CVE-2017-14227, CVE-2018-16790, CVE-2023-0437, CVE-2024-6381, CVE-2024-6383, and CVE-2025-0755.

4

Which versions of BSON::XS are affected by CVE-2025-40906?

BSON::XS versions 0.8.4 and earlier are affected by CVE-2025-40906.

5

Who is impacted by CVE-2025-40906?

Developers and systems using BSON::XS versions 0.8.4 and earlier for Perl are impacted by CVE-2025-40906.

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