CVE-2025-66578: robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation
Vulnerability summary
CVE-2025-66578 is a high (CVSS 7.5) Uncaught Exception vulnerability in robrichards xmlseclibs. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 09-12-2025PublishedVulnerability first disclosed.
- 09-12-2025Last modifiedVulnerability information updated.
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 metrics
2 scores · 2 sources · 1 version- CVE.orgCNA6.0MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:LDiffers
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.24% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundXmlseclibs
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Robrichards1 product
- xmlseclibs< 3.1.4
Xmlseclibs_project1 product
- xmlseclibs< 3.1.4
2 vendors · 2 products
References
3 links- github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9X Refsource CONFIRMExploitVendor Advisory
- github.com/robrichards/xmlseclibs/commit/69fd63080bc47a8d51bc101c30b7cb756862d1d6X Refsource MISCPatch