{"id":"CVE-2017-12972","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.","cvssScore":7.5,"cvssVersion":"3.0","cvssVector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","cvssMetrics":[{"version":"3.0","score":7.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"nvd@nist.gov","sourceName":"NVD","type":"Primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"nvd@nist.gov","sourceName":"NVD","type":"Primary"}],"cwes":["CWE-345"],"resolved":"NO-EXPLOIT-PUBLISHED","published":"2017-08-20","lastModified":"2026-06-17","affectedProducts":[{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.0"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.1"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.2"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.3"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.4"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.5"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.6"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.7"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.8"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.9"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.9.1"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.10"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.11"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"1.12"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"2.0"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"2.0.1"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"2.1"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"2.1.1"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"2.2"},{"vendor":"connect2id","product":"nimbus jose\\+jwt","version":"2.3"}],"totalAffectedProducts":1,"references":[{"url":"https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/0d2bd649ea386539220d4facfe1f65eb1dadb86c","source":"patch-hint","tags":["commit"]},{"url":"https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/224/byte-to-bit-overflow-in-cbc","source":"osv","tags":["WEB"]},{"url":"https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/CHANGELOG.txt","source":"osv","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/9317fd092b257a0815434b116a8af8daea6e920b6673f4fd5583d5fe@%3Ccommits.druid.apache.org%3E","source":"osv","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/9317fd092b257a0815434b116a8af8daea6e920b6673f4fd5583d5fe%40%3Ccommits.druid.apache.org%3E","source":"cve@mitre.org"}],"reasoning":{"decidingSource":"no-exploit-published","decidingReason":"This CVE is not listed in CISA KEV, CISA Vulnrichment records no active exploitation, and no reviewed exploit catalogue carries an entry for it. Nobody has published something a stranger can run, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.","verdicts":[{"rule":"rejected","stage":"identity","outcome":"no-match"},{"rule":"armr-patch-file","stage":"scope","outcome":"no-match"},{"rule":"armr-secure-rule-file","stage":"scope","outcome":"no-match"},{"rule":"manual-classification","stage":"scope","outcome":"no-match"},{"rule":"h2-history","stage":"scope","outcome":"no-match"},{"rule":"non-java-upstream","stage":"scope","outcome":"no-match"},{"rule":"oracle-component","stage":"scope","outcome":"no-match"},{"rule":"osv-maven","stage":"scope","outcome":"matched","status":"QUEUED-FOR-REVIEW","detail":"Maven packages: com.nimbusds:nimbus-jose-jwt"},{"rule":"patch-hint","stage":"disposition","outcome":"matched","status":"MITIGATION-CANDIDATE","detail":"References include candidate fix URL (commit tier): https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/0d2bd649ea386539220d4facfe1f65eb1dadb86c"},{"rule":"open-source-maven","stage":"disposition","outcome":"skipped"},{"rule":"poc-derivable","stage":"disposition","outcome":"skipped"},{"rule":"no-exploit","stage":"disposition","outcome":"skipped"},{"rule":"secure-rule-match","stage":"disposition","outcome":"no-match"},{"rule":"below-action-threshold","stage":"disposition","outcome":"no-match","detail":"Severity is HIGH — only MEDIUM/LOW are deprioritized"},{"rule":"no-exploit-published","stage":"disposition","outcome":"matched","status":"NO-EXPLOIT-PUBLISHED","detail":"No working exploit has been published, and an upstream fix path does exist, so the remediation half of the candidacy still holds.","decisive":true}],"patchHintUrl":"https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/0d2bd649ea386539220d4facfe1f65eb1dadb86c","patchHintTier":"commit","affectedProducts":[{"vendor":"connect2id","product":"nimbus_jose\\+jwt","isKnown":false,"cpe":"cpe:2.3:a:connect2id:nimbus_jose\\+jwt:1.0:*:*:*:*:*:*:*"}],"affectedPackages":[{"name":"com.nimbusds:nimbus-jose-jwt","introduced":"0","fixed":"4.39"}]},"assessment":{"record":{"state":"active"},"protection":{"level":"none"},"action":{"state":"unverified","type":"patch-rule"},"review":{"state":"automated","basis":"upstream-data"}},"signals":{"hasPOC":false,"pocCount":0},"kev":{"inKEV":false},"epss":{"available":true,"score":0.00888,"percentile":0.57329},"ssvc":{"available":false},"patchHintUrl":"https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/0d2bd649ea386539220d4facfe1f65eb1dadb86c","patchHintTier":"commit"}