CVE-2023-51774: High severity Json-jwt Project Json-jwt Ruby vulnerability
The json-jwt (aka JSON::JWT) gem 1.16.3 for Ruby sometimes allows bypass of identity checks via a sign/encryption confusion attack. For example, JWE can sometimes be used to bypass JSON::JWT.decode.
Other sources
The json-jwt (aka JSON::JWT) gem 1.16.x before 1.16.6, 1.15.x before 1.15.3.1 for Ruby sometimes allows bypass of identity checks via a sign/encryption confusion attack. For example, JWE can sometimes be used to bypass JSON::JWT.decode.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/json-jwtto a version that resolves this vulnerability.Fixed in 1.15.3.1 - Upgrade
Upgrade
rubygems/json-jwtto a version that resolves this vulnerability.Fixed in 1.16.6
Event History
Frequently Asked Questions
What is the severity of CVE-2023-51774?
CVE-2023-51774 is considered a significant vulnerability due to its potential for identity check bypass.
How do I fix CVE-2023-51774?
To fix CVE-2023-51774, upgrade the json-jwt gem to version 1.16.6 or 1.15.3.1 or later.
Which versions of json-jwt are affected by CVE-2023-51774?
Versions of json-jwt gem 1.16.3, 1.16.x before 1.16.6, and 1.15.x before 1.15.3.1 are affected by CVE-2023-51774.
What happens if I don't mitigate CVE-2023-51774?
Failing to mitigate CVE-2023-51774 may allow attackers to exploit the vulnerability, potentially leading to unauthorized access.
Is CVE-2023-51774 related to JWE?
Yes, CVE-2023-51774 involves a issue with JWE that can be leveraged to bypass identity checks in the json-jwt gem.