CVE-2025-66578 Details
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.
An authentication bypass vulnerability has been identified in xmlseclibs version 3.1.3. This issue arises from a flaw in the libxml2 canonicalization process, which is used during document transformation. When libxml2 encounters invalid XML input, it may return an empty string instead of a canonicalized node. xmlseclibs then incorrectly computes the DigestValue over this empty string, assuming that canonicalization was successful. As a result, an attacker could manipulate the validation process to bypass authentication checks. This vulnerability is patched in version 3.1.4.
Users are advised to update to xmlseclibs version 3.1.4. For those unable to update, it is recommended to treat canonicalization failures as fatal and abort the validation process. Explicit checks should also be added to reject any nil or empty outputs from the canonicalization process.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-248 | Uncaught Exception | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| xmlseclibs project xmlseclibs | < 3.1.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 7, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 11, 2025 | Initial Analysis | [email protected] |
| Dec 9, 2025 | New CVE Received | [email protected] |