CVE-2025-40906 Details
Description
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.
Several vulnerabilities have been identified in BSON::XS versions through 0.8.4 for Perl, which includes a bundled libbson version 1.1.7 known to have multiple security issues. These vulnerabilities arise from improper handling of BSON data, leading to heap-based buffer over-reads, infinite loops, integer overflows, and buffer overflows that can corrupt memory. Such issues can cause denial-of-service conditions or application crashes. Additionally, BSON::XS has reached its end of life as of August 13, 2020, and is no longer supported.
Users are advised to upgrade to libbson-xs-perl version 0.8.4-1+deb11u1.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 16, 2025CISA-ADP
Assessed May 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html | CPANSec | AdvisoryBundleMailing ListRemedy |
| https://www.mongodb.com/community/forums/t/mongodb-perl-driver-end-of-life/7890 | CPANSec | Not ApplicableVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1104 | Use of Unmaintained Third Party Components | CPANSec |
| CWE-122 | Heap-based Buffer Overflow | CPANSec |
| CWE-190 | Integer Overflow or Wraparound | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| BSON::XS | All versions |
CPE
Remediation
| |
| libbson-xs-perl | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 5, 2025 | CVE Modified | CPANSec |
| May 17, 2025 | CVE Modified | CISA-ADP |
| May 16, 2025 | New CVE Received | CPANSec |
Volerion