{"id":"UBUNTU-CVE-2023-51774","details":"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.","modified":"2026-04-27T18:48:48.708584Z","published":"2024-02-29T01:42:00Z","upstream":["CVE-2023-51774"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-51774"},{"type":"REPORT","url":"https://github.com/P3ngu1nW/CVE_Request/blob/main/novjson-jwt.md"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-51774"}],"affected":[{"package":{"name":"ruby-json-jwt","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-json-jwt@1.7.2-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-json-jwt","binary_version":"1.7.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51774.json"}},{"package":{"name":"ruby-json-jwt","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-json-jwt@1.11.0-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.4-1","1.11.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-json-jwt","binary_version":"1.11.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51774.json"}},{"package":{"name":"ruby-json-jwt","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-json-jwt@1.13.0-1ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.0-1","1.13.0-1","1.13.0-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-json-jwt","binary_version":"1.13.0-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51774.json"}},{"package":{"name":"ruby-json-jwt","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-json-jwt@1.14.0-2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-json-jwt","binary_version":"1.14.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51774.json"}},{"package":{"name":"ruby-json-jwt","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ruby-json-jwt@1.16.7-1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-json-jwt","binary_version":"1.16.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51774.json"}},{"package":{"name":"ruby-json-jwt","ecosystem":"Ubuntu:26.04","purl":"pkg:deb/ubuntu/ruby-json-jwt@1.17.0-1?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.7-1","1.17.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-json-jwt","binary_version":"1.17.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51774.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}