{"id":"CVE-2025-48995","aliases":["CVE-2025-48995","GHSA-gmhf-gg8w-jw42","PYSEC-2026-1922"],"related":[],"kind":"vulnerability","state":"published","title":"SignXML's signature verification with HMAC is vulnerable to a timing attack","summary":"SignXML is an implementation of the W3C XML Signature standard in Python. When verifying signatures with X509 certificate validation turned off and HMAC shared secret set (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), versions of SignXML prior to 4.0.4 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SignXML is an implementation of the W3C XML Signature standard in Python. When verifying signatures with X509 certificate validation turned off and HMAC shared secret set (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), versions of SignXML prior to 4.0.4 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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"SignXML es una implementación del estándar de firma XML del W3C en Python. Al verificar firmas con la validación de certificado X509 desactivada y el secreto compartido HMAC establecido (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), las versiones de SignXML anteriores a la 4.0.4 son vulnerables a un posible ataque de temporización. El verificador puede filtrar información sobre el HMAC correcto al compararlo con el hash proporcionado por el usuario, lo que permite a los usuarios reconstruir el HMAC correcto para cualquier dato.","source":"nvd"}],"published":"2025-06-02T16:23:27.706Z","modified":"2026-07-07T17:56:23.298Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-208"],"affected":[{"ranges":[{"version":"< 4.0.4","status":"affected"}],"vendor":"XML-Security","product":"signxml","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.4"}],"ecosystem":"PyPI","package":"signxml","purl":"pkg:pypi/signxml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.4"}],"ecosystem":"PyPI","package":"signxml","purl":"pkg:pypi/signxml","source":"pysec"}],"references":[{"url":"https://github.com/XML-Security/signxml/security/advisories/GHSA-gmhf-gg8w-jw42","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/XML-Security/signxml/commit/1b501faaacf34cf978a52dbc6915ec11e27611cd","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48995","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/XML-Security/signxml","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/signxml","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-gmhf-gg8w-jw42","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-06-02T16:40:57.602Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48995","url":"https://www.cve.org/CVERecord?id=CVE-2025-48995","licence":"CVE Terms of Use","modified":"2025-06-02T16:41:13.270Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gmhf-gg8w-jw42","url":"https://github.com/advisories/GHSA-gmhf-gg8w-jw42","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:23.298Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48995","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48995","licence":"Public domain","modified":"2026-06-17T09:30:38.297Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1922","url":"https://osv.dev/vulnerability/PYSEC-2026-1922","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:12.603Z"}],"updatedAt":"2026-11-25T22:58:58.664Z","epss":{"score":0.00239,"percentile":0.16097,"date":"2026-12-01T12:00:22.000Z"}}