Vulnerability · Published May 16, 2025 · Assigned by CPANSec

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

Critical 9.8

In plain English

A critical-severity heap buffer overflow in BSON::XS from MONGODB. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities).

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.6%top 49.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libbson-xs-perlno fix listedDEBIAN-CVE-2025-40906
Ubuntu:22.04:LTSlibbson-xs-perlno fix listedUBUNTU-CVE-2025-40906
Ubuntu:24.04:LTSlibbson-xs-perlno fix listedUBUNTU-CVE-2025-40906

Affected products (as reported)

VendorProductVersions
MONGODB BSON::XS 0 – through 0.8.4

Weakness: CWE-1395, CWE-1104, CWE-122, CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References