Skip to content
OpenAdvisories
High · 8.4 CVE-2023-51774 EUVD-2024-0613GHSA-c8v6-786g-vjx6

json-jwt allows bypass of identity checks via a sign/encryption confusion attack

Published Dec 25, 2023 · Updated Aug 26, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-json-jwt No fix yet —
Ubuntu 26.04 LTS ruby-json-jwt No fix yet —
Ubuntu 25.10 ruby-json-jwt No fix yet —
Ubuntu 24.04 LTS ruby-json-jwt No fix yet —
Ubuntu 22.04 LTS ruby-json-jwt No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ruby-json-jwt No fix yet —
Ubuntu 18.04 LTS ruby-json-jwt No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 rubygem-aes_key_wrap 1.1.0-bp155.2.1 openSUSE-SU-2025:0004-1
SUSE Package Hub 15 SP5 rubygem-json-jwt 1.16.6-bp155.3.3.1 openSUSE-SU-2025:0004-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 rubygem-aes_key_wrap 1.1.0-bp155.2.1 openSUSE-SU-2025:0004-1
openSUSE Leap 15.5 rubygem-json-jwt 1.16.6-bp155.3.3.1 openSUSE-SU-2025:0004-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kube-fluentd-operator +3 1.18.2-r3 —
Wolfi rolling ruby3.2-json-jwt 1.16.6-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems json-jwt >= 1.16.0, < 1.16.6 1.16.6 GHSA-c8v6-786g-vjx6
RubyGems json-jwt < 1.15.3.1 1.15.3.1 GHSA-c8v6-786g-vjx6

Advisories 1

References