patchminder
No public exploit found CVE-2025-40906

Buffer overflowin CVE-2025-40906.

Published 16 May 2025 · Updated 9 Sep 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.6% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
See the vendor advisory
In plain words

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.

What to do now
  • 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.

Not confirmed by any source yet: fixed version not confirmed. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
BSON::XS
0.8.4 and earlier
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 16 Apr 2025
    CVE ID reserved by CPANSec.
  2. 16 May 2025
    Published in the CVE List.
  3. 9 Sep 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Same weakness:

All CWE-1395 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-40906: Buffer overflow in CVE-2025-40906. https://patchminder.com/cve/cve-2025-40906/ (accessed 5 December 2026).