PT-2025-49776 · Unknown+1 · Xmlseclibs+1

Published

2025-12-09

·

Updated

2025-12-11

·

CVE-2025-66578

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions xmlseclibs versions prior to 3.1.4
Description xmlseclibs is a PHP library used for XML Encryption and Signatures. Versions of the library before 3.1.4 contain a flaw in the libxml2 canonicalization process during document transformation that can lead to an authentication bypass. Specifically, when libxml2’s canonicalization is applied to invalid XML input, it may return an empty string instead of a canonicalized node. xmlseclibs then calculates the DigestValue based on this empty string, incorrectly assuming successful canonicalization.
Recommendations Update to version 3.1.4 or later. Treat canonicalization failures (exceptions or nil/empty outputs) as fatal and abort validation. Add explicit checks to reject when canonicalization returns nil/empty or raises errors.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2025-66578
GHSA-C4CC-X928-VJW9

Affected Products

Libxml2
Xmlseclibs