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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-05-16 · Modified: 2025-09-09
- Aliases: UBUNTU-CVE-2025-40906, DEBIAN-CVE-2025-40906
- Record: https://cvemate.com/vulnerability/CVE-2025-40906 · JSON: https://cvemate.com/vulnerability/CVE-2025-40906/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.646%, percentile 52.391%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libbson-xs-perl (Debian): All versions (No fix recorded)
- ubuntu libbson-xs-perl (Ubuntu): All versions (No fix recorded)
- mongodb bson::xs: ≤ 0.8.4

## References

- <https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html>
- <https://www.mongodb.com/community/forums/t/mongodb-perl-driver-end-of-life/7890>
- <https://ubuntu.com/security/CVE-2025-40906>
- <https://www.cve.org/CVERecord?id=CVE-2025-40906>
- <https://lists.security.metacpan.org/cve-announce/msg/29655123/>
- <https://security-tracker.debian.org/tracker/CVE-2025-40906>

---

Data as of 2026-12-05T04:50:31.886Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
