CVE-2025-66578CWE-248

CVE-2025-66578

Medium · published December 9, 2025

CVSS v3.1
6.0
EPSS
0%
Percentile
14.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.0 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00242 · 14.5th percentile
Weakness
CWE-248 · Uncaught Exception
Published
2025-12-09T21:18Z
Affected products (1)
ProductVersionsFixed in
xmlseclibs_project/xmlseclibs< 3.1.43.1.4
References (3)
EPSS history
Timeline
  • 09 DEC 02:41Z
    robrichards/xmlseclibs has an Libxml2 Canonicalization error which can bypass Digest/Signature validation
    cvelistv5