jwe: Missing AES-GCM authentication tag validation in encrypted JWEs
Published Aug 8, 2025
9.1
CRITICALCVSS 3.1
EPSS 0.25%
Description
jwe is a Ruby implementation of the RFC 7516 JSON Web Encryption (JWE) standard. In versions 1.1.0 and below, authentication tags of encrypted JWEs can be brute forced, which may result in loss of confidentiality for those JWEs and provide ways to craft arbitrary JWEs. This puts users at risk because JWEs can be modified to decrypt to an arbitrary value, decrypted by observing parsing differences and the GCM internal GHASH key can be recovered. Users are affected by this vulnerability even if they do not use an AES-GCM encryption algorithm for their JWEs. As the GHASH key may have been leaked, users must rotate the encryption keys after upgrading. This issue is fixed in version 1.1.1.
Affected products
-
Affected
- < 1.1.1
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (6)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-23966 Advisory
- https://github.com/advisories/GHSA-c7p4-hx26-pr73 Advisory
- https://github.com/jwt/ruby-jwe/commit/1e719d79ba3d7aadaa39a2f08c25df077a0f9ff1 x_refsource_MISC
- https://github.com/jwt/ruby-jwe/security/advisories/GHSA-c7p4-hx26-pr73 x_refsource_CONFIRM
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jwe/CVE-2025-54887.yml
- https://nvd.nist.gov/vuln/detail/CVE-2025-54887
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
Red Hat
No data
GitHub