BSON Serialization Vulnerabilities in Perl's BSON::XS Library
CVE-2025-40906
Key Information:
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory β2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Bson::xs. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Patch this week"
- It can be exploited remotely without credentials.
- Its CVSS severity is critical (9.8).
What is CVE-2025-40906?
BSON::XS for Perl, specifically versions up to 0.8.4, include a bundled version of libbson (1.1.7) that harbors multiple vulnerabilities. These include numerous issues discovered over the years, leading to significant security risks. As this library has reached its end-of-life as of August 13, 2020, it is no longer supported, emphasizing the necessity for users to migrate to alternatives or secure configurations to maintain system integrity.
Affected Version(s)
BSON::XS 0 <= 0.8.4
References
More Mongodb Vulnerabilities
Use-After-Free Vulnerability in MongoDB Server's Replication Component
TLS Implementation Flaw in MongoDB on macOS for IPv6 Connections
Memory Exhaustion Vulnerability in MongoDB
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction