CVE Tools

CVE-2025-66578

robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation

Published: Dec 9, 2025Updated: Dec 11, 2025 Sources: CVE List NVD GHSACWE-248
6.0CVSSMEDIUM

Description

xmlseclibs is a library written in PHP for working with XML Encryption and Signatures. Versions 3.1.3 contain an authentication bypass vulnerability due to a flaw in the libxml2 canonicalization process during document transformation. When libxml2’s canonicalization is invoked on an invalid XML input, it may return an empty string rather than a canonicalized node. xmlseclibs then proceeds to compute the DigestValue over this empty string, treating it as if canonicalization succeeded. This issue is fixed in version 3.1.4. Workarounds include treating canonicalization failures (exceptions or nil/empty outputs) as fatal and aborting validation, and/or adding explicit checks to reject when canonicalize returns nil/empty or raises errors.

CVSS Vector Breakdown

AV:NAC:LPR:HUI:NS:UC:HI:LA:L
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:HPrivileges Required
High
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:LIntegrity
Low
A:LAvailability
Low

Weaknesses

Affected Products

robrichardsaka robrichards
packagistpackage-ecosystemOSS Libraries

Exploitability

1 exploit source identified

Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.

View exploit details
Official Patch Available

References

and 2 more references View all →

Timeline

Published
Dec 9, 2025
Last Updated
Dec 11, 2025

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-66578 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows