Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. signxml
  4. ›
  5. CVE-2025-48995

CVE-2025-48995: SignXML's signature verification with HMAC is vulnerable to a timing attack

June 5, 2025

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 timing attack. The verifier may leak information about the correct HMAC when comparing it with the user supplied hash, allowing users to reconstruct the correct HMAC for any data.

References

  • github.com/XML-Security/signxml
  • github.com/XML-Security/signxml/commit/1b501faaacf34cf978a52dbc6915ec11e27611cd
  • github.com/XML-Security/signxml/security/advisories/GHSA-gmhf-gg8w-jw42
  • github.com/advisories/GHSA-gmhf-gg8w-jw42
  • nvd.nist.gov/vuln/detail/CVE-2025-48995

Code Behaviors & Features

Detect and mitigate CVE-2025-48995 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.0.4

Fixed versions

  • 4.0.4

Solution

Upgrade to version 4.0.4 or above.

Weakness

  • CWE-208: Observable Timing Discrepancy

Source file

pypi/signxml/CVE-2025-48995.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:30 +0000.