{"cve":"CVE-2017-12972","nvd":{"published":"2017-08-20T16:29:00.237","modified":"2026-06-17T01:04:14.427","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-345"],"references":["https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/0d2bd649ea386539220d4facfe1f65eb1dadb86c","https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/224/byte-to-bit-overflow-in-cbc","https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/CHANGELOG.txt","https://lists.apache.org/thread.html/9317fd092b257a0815434b116a8af8daea6e920b6673f4fd5583d5fe%40%3Ccommits.druid.apache.org%3E","https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/0d2bd649ea386539220d4facfe1f65eb1dadb86c"],"products":["connect2id:nimbus_jose\\+jwt"],"source":"nvd","synced_at":"2026-10-19T20:44:47.710380879+00:00"},"epss":{"cve":"CVE-2017-12972","score":0.00888,"percentile":0.59336,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2qp9-wg27-9pcv","url":"https://osv.dev/vulnerability/GHSA-2qp9-wg27-9pcv","summary":"Nimbus JOSE+JWT missing overflow check","modified":"2023-11-08T03:58:54.698483Z","packages":[{"ecosystem":"Maven","name":"com.nimbusds:nimbus-jose-jwt","purl":"pkg:maven/com.nimbusds/nimbus-jose-jwt","ranges":["<4.39"],"fixed":["4.39"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}