# CVE-2025-40934: XML-Sig prior to 0.68 for Perl improperly validates XML without signatures

- Severity: Critical 9.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-02)
- Published: 2025-11-26T22:34:33.569Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

XML-Sig versions 0.27 through 0.67 for Perl incorrectly validates XML files if signatures are omitted.

An attacker can remove the signature from the XML document to make it pass the verification check.

XML-Sig is a Perl module to validate signatures on XML files.  An unsigned XML file should return an error message.  The affected versions return true when attempting to validate an XML file that contains no signatures.

(As written by CVE List.)

## Affected

- XML-Sig: from 0.27 before 0.68
- xml::sig_project xml::sig: from 0.27 up to 0.67

## References

- <https://github.com/perl-net-saml2/perl-XML-Sig/issues/63> (issue-tracking, patch)
- <https://github.com/perl-net-saml2/perl-XML-Sig/pull/64> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2025-40934](https://www.cve.org/CVERecord?id=CVE-2025-40934), CVE Terms of Use, modified 2025-11-28
- NVD: [CVE-2025-40934](https://nvd.nist.gov/vuln/detail/CVE-2025-40934), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-40934 · Whole record: https://cve.day/CVE-2025-40934.json · Rebuilt by cve.day 2026-11-25T22:59:08.050Z
