CVE-2025-66578: xmlseclibs - Authentication Bypass
- Cve: CVE-2025-66578
- Name: xmlseclibs - Authentication Bypass
- 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.
- Impact: Attackers can bypass authentication by exploiting signature validation flaws, potentially allowing unauthorized actions.
- Remediation: Upgrade to version 3.1.4 or later.
- Vulnerability type: broken_authentication
- Vulnerability impact: broken_authentication
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00255
- Epss percentile: 0.17026
- Assignee: [email protected]
- Published at: 2025-12-09T16:18:21Z
- Age in days: 350
- Modified at: 2026-10-07T20:10:01Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-66578
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-248 | Uncaught Exception |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9 | nvd | 2025-12-09 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| xmlseclibs_project:xmlseclibs | < 3.1.4 | no | nvd | /v1/products/xmlseclibs_project/xmlseclibs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| robrichards/xmlseclibs | commit, package, security_advisory | yes | /v1/repositories/robrichards/xmlseclibs |
Index
- Repositories: 7
- Repositories high signal: 3
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-12-09
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts