Skip to content
OpenAdvisories
Critical · 9.3 CVE-2025-40934 EUVD-2025-199778GHSA-v825-mc9m-64qr

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

Published Nov 26, 2025 · Updated Nov 28, 2025 · 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.

Affected products

VendorProductAffectedFixed
TIMLEGGE XML::Sig 0.27 – < 0.68 0.68

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Alpine v3.24 perl-xml-sig 0.68-r0 —
Alpine v3.23 perl-xml-sig 0.68-r0 —
Alpine v3.22 perl-xml-sig 0.68-r0 —

References