Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-40934
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:05 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 26 Nov 2025, 22:34 UTC

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.

osv:CVE-2025-40934
Complete source record
{
  "id": "35753c6045db5f83f3248dfc39fbde2268d270840adeae097da181b4a076ca66",
  "url": "https://osv.dev/vulnerability/CVE-2025-40934",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "XML-Sig prior to 0.68 for Perl improperly validates XML without signatures",
    "summary": "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.",
    "evidence": "osv:CVE-2025-40934",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-40934",
      "aliases": [
        "CVE-2025-40934"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/perl-net-saml2/perl-xml-sig",
              "type": "GIT",
              "events": [
                {
                  "introduced": "89dd4fe13fadcb751b9deca1b0308cf9ef7e137c"
                },
                {
                  "fixed": "e9891443ce93de1c236b22f44d0712c236ed2333"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.27"
                      },
                      {
                        "fixed": "0.68"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:xml\\:\\:sig_project:xml\\:\\:sig:*:*:*:*:*:perl:*:*",
                    "range": [
                      {
                        "introduced": "0.27"
                      },
                      {
                        "last_affected": "0.67"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40934.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.615074420Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40934.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40934",
        "https://github.com/perl-net-saml2/perl-XML-Sig/issues/63",
        "https://github.com/perl-net-saml2/perl-XML-Sig/pull/64",
        "https://github.com/perl-net-saml2/perl-XML-Sig"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-347"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40934.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40934",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501053,
  "published_at": "2025-11-26T22:34:33.569+00:00"
}