ADVISORIES

GitHub Advisory Database

GHSA-2qp9-wg27-9pcv

Nimbus JOSE+JWT missing overflow check

Details

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 packages

EcosystemPackageAffected versions
Mavencom.nimbusds:nimbus-jose-jwt
All versions before 4.39 (fixed in 4.39)

References