CVE-2017-12972
Nimbus JOSE+JWT missing overflow check
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.nimbusds » nimbus-jose-jwt | < 4.39 | 4.39 |
Blast radius
32% of the dependent artifacts (897) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 7,558 |
| 2 hops | 74,985 |
| 3 hops | 108,626 |
| 4 hops | 96,676 |
| 5 hops | 86,420 |
| 6 hops | 36,195 |
Most used dependents
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- com.microsoft.sqlserver » mssql-jdbc1,206 usages
- org.apache.spark » spark-mllib831 usages
- com.atlassian.confluence » confluence724 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.hbase » hbase-server643 usages
- org.apache.spark » spark-hive633 usages
- com.nimbusds » oauth2-oidc-sdk584 usages
- com.atlassian.jira » jira-core554 usages
- org.apache.spark » spark-catalyst502 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2017-12972 | nvd.nist.gov |
| Web | connect2id/nimbus-jose-jwt/commits/0d2bd649ea386539220d4facfe1f65eb1dadb86c | bitbucket.org |
| Web | connect2id/nimbus-jose-jwt/issues/224/byte-to-bit-overflow-in-cbc | bitbucket.org |
| Web | connect2id/nimbus-jose-jwt/src/master/CHANGELOG.txt | bitbucket.org |
| Web | thread.html/9317fd092b257a0815434b116a8af8daea6e920b6673f4fd5583d5fe@<commits.druid.apache ... | lists.apache.org |
