Timing Attack Affecting signxml package, versions [,4.0.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-SIGNXML-10303872
  • published5 Jun 2025
  • disclosed2 Jun 2025
  • creditahacker1-securesaml

Introduced: 2 Jun 2025

NewCVE-2025-48995  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade signxml to version 4.0.4 or higher.

Overview

signxml is a Python XML Signature and XAdES library

Affected versions of this package are vulnerable to Timing Attack due to the verify function in XMLVerifier. An attacker can infer the correct HMAC used for XML signature verification by observing the time it takes to compare the computed HMAC with the provided hash.

Note: This is only exploitable if X509 certificate validation is turned off and a specific HMAC shared secret is set.

CVSS Base Scores

version 4.0
version 3.1