CVE-2017-12972 · mitre
CVE-2017-12972
In Nimbus JOSE+JWT before 4.39, there is no integer-overflow check when converting length values from bytes to bits, which allows attackers to conduct HMAC bypass attacks by shifting Additional Authenticated Data (AAD) and ciphertext so that different plaintext is obtained for the same HMAC.
Published 2017-08-20, last changed 2026-06-17. Weakness: CWE-345.
How to fix
Upgrade to a fixed version: com.nimbusds:nimbus-jose-jwt 4.39 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-08-20 | Published |
| 2022-05-13 | Package advisory GHSA-2qp9-wg27-9pcv |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.89% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-2qp9-wg27-9pcv | com.nimbusds:nimbus-jose-jwt (Maven) | 4.39 |
Also known as: GHSA-2qp9-wg27-9pcv
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-53864 | 2025-07-11 | 5.8 | same package: com.nimbusds:nimbus-jose-jwt (Maven) |
| CVE-2023-52428 | 2024-02-11 | 7.5 | same package: com.nimbusds:nimbus-jose-jwt (Maven) |
| CVE-2019-17195 | 2019-10-15 | 9.8 | same package: com.nimbusds:nimbus-jose-jwt (Maven) |
| CVE-2017-12974 | 2017-08-20 | 7.5 | same package: com.nimbusds:nimbus-jose-jwt (Maven) |
| CVE-2017-12973 | 2017-08-20 | 3.1 | same package: com.nimbusds:nimbus-jose-jwt (Maven) |
| CVE-2026-88592 | 2026-09-16 | 9.1 | same weakness (CWE-345) from the same CNA (mitre) |
| CVE-2025-59323 | 2026-08-12 | 8.4 | same weakness (CWE-345) from the same CNA (mitre) |
| CVE-2026-39155 | 2026-07-23 | 6.5 | same weakness (CWE-345) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-12972, or call /api/v1/vulnerabilities/CVE-2017-12972. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.