Skip to main content
CVE-2025-66578VulnerabilityPublished

CVE-2025-66578: robrichards xmlseclibs · Uncaught Exception

Affects robrichards xmlseclibsSource CVE Database V5

0

Not known to be exploited · CVSS 6.0 Medium : upgrade to 3.1.4 when convenient.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
6.0Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.1.4
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade robrichards/xmlseclibs to 3.1.4.

Affected software

ProductAffectedFixed in
Packagistrobrichards/xmlseclibspkg:composer/robrichards/xmlseclibsOther threatsAffected
  • <3.1.4
Fixed in
  • 3.1.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately upgrade xmlseclibs to version 3.1.4 or later, which contains the official fix for this vulnerability. If upgrading is not immediately feasible, implement strict validation checks to treat any canonicalization failure—such as exceptions, nil, or empty outputs—as fatal errors that abort XML signature validation. Code audits should be conducted to ensure no silent acceptance of empty canonicalization results occurs. Additionally, restrict privileges to minimize the risk of high-privilege account compromise, and monitor XML processing logs for anomalies indicative of signature bypass attempts. Employ defense-in-depth by validating XML inputs at multiple layers and using alternative signature verification libraries where possible. Regularly update libxml2 to the latest secure versions to reduce underlying library risks. Finally, conduct penetration testing focused on XML signature validation to detect potential exploitation.

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.

References

Community reviews

Loading reviews…