Timing Attack Vulnerability in SignXML Package - CVE-2025-48995

python-signxml Updated 02 Oct 2025

Summary

02/06/2025
N/A
Yes i
Unrated
Not published

CVE-2025-48995: SignXML is an implementation of the W3C XML Signature standard in Python. Affects python-signxml across 2 version ranges.

< 1b501faaacf34cf978a52dbc6915ec11e27611cd < 4.0.5+dfsg-1

Fixed in 4.0.5+dfsg-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

SignXML is a Python library that implements the W3C XML Signature standard, enabling users to create and verify XML signatures. It is widely used for securing XML data exchanges in various applications. The library provides features such as HMAC signing and verification, but certain configurations can expose it to security risks.

Vulnerability Detail

The vulnerability identified as CVE-2025-48995 affects versions of the SignXML package prior to 4.0.4. When the XML verifier is configured to disable X509 certificate validation and uses a shared HMAC key, it becomes susceptible to a timing attack. This flaw allows an attacker to glean information about the correct HMAC by analyzing the time taken to compare the user-supplied hash with the correct one. Consequently, this could enable the reconstruction of the correct HMAC for any data, compromising the integrity of the signatures.

How To Fix

Minimum fixed version

4.0.5+dfsg-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-signxml

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can avoid using the require_x509=False setting when verifying signatures. Instead, ensure that X509 certificate validation is enabled to mitigate the risk of timing attacks.

Conclusion

The CVE-2025-48995 vulnerability in the SignXML package poses a significant risk when signatures are verified without proper X509 certificate validation. Users are strongly encouraged to update to version 4.0.4 or later to ensure their applications remain secure. For those unable to update immediately, enabling X509 validation serves as a temporary workaround.

See every vulnerability recorded for python-signxml →

Share this vulnerability

FAQ

CVE-2025-48995 is a vulnerability in the SignXML package that allows for potential timing attacks when verifying signatures without X509 certificate validation.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability could allow an attacker to reconstruct the correct HMAC for any data, potentially compromising the integrity of XML signatures.

Yes, the vulnerability has been patched in version 4.0.4 of the SignXML package. Updating to this version will mitigate the risk.

If an immediate update is not possible, consider enabling X509 certificate validation in your signature verification process to reduce the risk of timing attacks.

Related vulnerabilities

Recent vulnerabilities recorded for python-signxml.

How To Fix

Minimum fixed version

4.0.5+dfsg-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-signxml

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback