USN-9339-1: json-jwt vulnerabilities
It was discovered that json-jwt did not properly verify the authentication tag when decrypting AES-GCM encrypted JSON Web Tokens. A remote attacker could possibly use this issue to forge encrypted tokens. (CVE-2018-1000539) It was discovered that json-jwt did not check the number of elements when splitting JSON Web Encryption strings. A remote attacker could possibly use this issue to cause json-jwt to accept malformed tokens. (CVE-2019-18848)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-json-jwtto a version that resolves this vulnerability.Fixed in Ubuntu Pro
Event History
Frequently Asked Questions
What capabilities would an attacker need to exploit these issues?
The issues can be exploited remotely by supplying crafted JSON Web Tokens to an application that uses the affected json-jwt functionality. One issue may allow forged AES-GCM encrypted tokens, while the other may cause malformed JSON Web Encryption strings to be accepted.
Which token types and processing paths are relevant?
The authentication-tag verification issue applies when decrypting AES-GCM encrypted JSON Web Tokens. The malformed-token issue applies when json-jwt splits JSON Web Encryption strings.
How can I determine whether an application may be exposed?
Review whether the application uses the ruby-json-jwt package and accepts or decrypts JSON Web Tokens from remote users. Exposure is particularly relevant if it processes AES-GCM encrypted tokens or JSON Web Encryption inputs.