Insufficient Verification of Data Authenticity Affecting com.nimbusds:nimbus-jose-jwt package, versions [,4.39)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMNIMBUSDS-3110420
  • published9 Nov 2022
  • disclosed13 May 2022
  • creditUnknown

Introduced: 13 May 2022

CVE-2017-12972  (opens in a new tab)
CWE-345  (opens in a new tab)

How to fix?

Upgrade com.nimbusds:nimbus-jose-jwt to version 4.39 or higher.

Overview

com.nimbusds:nimbus-jose-jwt is a library for JSON Web Tokens (JWT)

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity due to missing validation for integer overflow when converting length values from bytes to bits. Exploiting this vulnerability 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.

Note: This vulnerability only affects JWE decryption with A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512 encryption methods.

CVSS Scores

version 3.1