Skip to content

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

CriticalCVSS 9.3 EPSS 0.18%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
TIMLEGGE XML::Sig >= 0.27, < 0.68 0.68
alpine/perl-xml-sig(Alpine:v3.22) >= 0.27, < 0.68-r0 0.68-r0
alpine/perl-xml-sig(Alpine:v3.23) >= 0.27, < 0.68-r0 0.68-r0
alpine/perl-xml-sig(Alpine:v3.24) >= 0.27, < 0.68-r0 0.68-r0
xmlsig project xmlsig >= 0.27, <= 0.67 No fix listed

References