Vulnerabilities in pkg:pypi/signxml

PACKAGE
Advisory Identifier: GHSA-6vx8-pcwv-xhf4
Advisory Summary

CVE-2025-48994 is a MODERATE signxml's signature verification with hmac vulnerability (CWE-303: Incorrect Implementation of Authentication Algorithm) affecting Signxml libraries in the PyPI ecosystem. The issue involves signxml's signature verification with hmac is vulnerable to an algorithm confusion attack. Remediation is available by upgrading affected packages to version 4.0.4.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/signxml

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/signxml. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6vx8-pcwv-xhf4 CVE-2025-48994 MODERATE SignXML's signature verification with HMAC is vulnerable to an algorithm confusion attack
GHSA-gmhf-gg8w-jw42 CVE-2025-48995 MODERATE SignXML's signature verification with HMAC is vulnerable to a timing attack

CVE-2025-48994 at a Glance

CVE Identifier CVE-2025-48994
GHSA Identifier GHSA-6vx8-pcwv-xhf4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-303: Incorrect Implementation of Authentication Algorithm
Affected Product Signxml
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-48994

To remediate this vulnerability, upgrade all affected Signxml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

signxml fixed: 4.0.4
pip install signxml>=4.0.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show signxml

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-48994, inspect your installed packages using pip:

pip show signxml

Analyze the terminal output to locate any version of Signxml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.4), your application is affected.

Note: The pip show signxml command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-303: Incorrect Implementation of Authentication Algorithm, where the requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect. In Signxml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

When verifying signatures with X509 certificate validation turned off and HMAC shared secret set (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), prior versions of SignXML are vulnerable to a potential algorithm confusion attack. Unless the user explicitly limits the expected signature algorithms using the `signxml.XMLVerifier.verify(expect_config=...)` setting, an attacker may supply a signature unexpectedly signed with a key other than the provided HMAC key, using a different (asymmetric key) signature algorithm. Starting with signxml 4.0.4, specifying `hmac_key` causes the set of accepted signature algorithms to be restricted to HMAC only, if not already restricted by the user.

CVE-2025-48994 Affected Signxml Versions

1 component(s)
Fixed Versions:
4.0.4
Product / Package Ecosystem Affected Versions Fixed Version
signxml
PyPI
< 4.0.4
4.0.4

References

Frequently Asked Questions

What is CVE-2025-48994?
CVE-2025-48994 is a security vulnerability in Signxml involving SignXML's signature verification with HMAC is vulnerable to an algorithm confusion attack under CWE-303: Incorrect Implementation of Authentication Algorithm.
Which Signxml versions are affected?
Affected versions include releases prior to 4.0.4 across affected packages: signxml.
What version fixes CVE-2025-48994?
Upgrading to 4.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is signxml affected?
Yes, signxml is affected in releases prior to 4.0.4. Upgrade your dependency to 4.0.4 or later.
What CWE is associated with CVE-2025-48994?
CVE-2025-48994 is classified under CWE-303: Incorrect Implementation of Authentication Algorithm (The requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect.).
How can I check PyPI dependencies for CVE-2025-48994?
Run the dependency tree command: 'pip show signxml'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6vx8-pcwv-xhf4",
  "modified" : "2025-06-05T00:38:20Z",
  "published" : "2025-06-05T00:38:20Z",
  "aliases" : [ "CVE-2025-48994" ],
  "summary" : "SignXML's signature verification with HMAC is vulnerable to an algorithm confusion attack",
  "details" : "When verifying signatures with X509 certificate validation turned off and HMAC shared secret set (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), prior versions of SignXML are vulnerable to a potential algorithm confusion attack. Unless the user explicitly limits the expected signature algorithms using the `signxml.XMLVerifier.verify(expect_config=...)` setting, an attacker may supply a signature unexpectedly signed with a key other than the provided HMAC key, using a different (asymmetric key) signature algorithm.\n\nStarting with signxml 4.0.4, specifying `hmac_key` causes the set of accepted signature algorithms to be restricted to HMAC only, if not already restricted by the user.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "signxml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/XML-Security/signxml/security/advisories/GHSA-6vx8-pcwv-xhf4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48994"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/XML-Security/signxml/commit/e3c0c2b82a3329a65d917830657649c98b8c7600"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/XML-Security/signxml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-303" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-05T00:38:20Z",
    "nvd_published_at" : "2025-06-02T17:15:40Z"
  }
}