CVE Catalog

CVE-2025-66578

MediumCVSS 6.0
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.24%

14th percentile - higher than 14% of all known CVEs

Summary

xmlseclibs version 3.1.3 contains an authentication bypass vulnerability caused by a flaw in the libxml2 canonicalization process during document transformation. When libxml2 canonicalization is invoked on invalid XML input, it may return an empty string instead of a canonicalized node, and xmlseclibs computes the DigestValue over this empty string, treating it as a successful canonicalization.

Risk Assessment

An attacker may bypass XML signature verification and authentication, potentially leading to unauthorized access to protected resources or impersonation of a trusted sender. The vulnerability affects systems using xmlseclibs for XML signature validation.

Recommendation

Update xmlseclibs to version 3.1.4. As a workaround, treat canonicalization failures (exceptions or nil/empty outputs) as fatal and abort validation, and add explicit checks to reject when canonicalization returns nil/empty or raises errors.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS