{"id":"CVE-2025-66578","published":"2025-12-09T02:41:19Z","modified":"2025-12-09T15:24:42Z","title":"robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation","vendor":"robrichards","product":"xmlseclibs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00401,"percentile":0.25897,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/robrichards/xmlseclibs/commit/69fd63080bc47a8d51bc101c30b7cb756862d1d6","tags":["x_refsource_MISC"]},{"url":"https://github.com/robrichards/xmlseclibs/blob/f4131320c6dcd460f1b0c67f16f8bf24ce4b5c3e/src/XMLSecurityDSig.php#L296","tags":["x_refsource_MISC"]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":5.18},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"robrichards","affectedVersions":[{"vendor":"robrichards","product":"xmlseclibs","versions":["< 3.1.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-09T15:24:31.684932Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"robrichards/xmlseclibs","vulnerableRanges":["<3.1.4"],"patched":["3.1.4"],"from":["GHSA-c4cc-x928-vjw9"],"provenance":"source"}],"summary":{"text":"The xmlseclibs PHP library (robrichards/xmlseclibs) contains a flaw in how it handles libxml2 canonicalization during document transformation: when canonicalization is given invalid XML, it can return an empty string that the library then digests as though canonicalization had succeeded.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:38Z"},"euvd":{"id":"EUVD-2025-201790","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-3465","published":"2019-11-07","fixed":"3.0.4","kev":false},{"cve":"CVE-2025-66578","published":"2025-12-09","fixed":"3.1.4","kev":false},{"cve":"CVE-2026-32313","published":"2026-03-13","fixed":"3.1.5","kev":false,"link":{"from":"CVE-2025-66578","to":"CVE-2026-32313","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:robrichards/xmlseclibs","fromFixed":"3.1.4","toFixed":"3.1.5","daysApart":94}]}}],"package":"Packagist:robrichards/xmlseclibs"}}