CVE-2025-54887 Details
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.
A vulnerability exists in the JWE Ruby library, specifically in versions through 1.1.0, where the authentication tags of encrypted JSON Web Encrypted (JWE) objects can be brute-forced. This flaw may lead to a loss of confidentiality for the affected JWEs and allows for the creation of arbitrary JWEs. The vulnerability is particularly concerning because it enables modification of JWEs to decrypt to specific values, manipulation of parsing differences to extract decrypted information, and potential recovery of the internal GHASH key used in Galois/Counter Mode (AES-GCM) encryption. Notably, all users of the library are affected, regardless of whether they use AES-GCM for encryption.
Users should upgrade to JWE version 1.1.1, which addresses the vulnerability by adding necessary validation for the authentication tag length in the AES-GCM algorithm. After upgrading, it is crucial to rotate the encryption keys, as the GHASH key may have been compromised.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 8, 2025CISA-ADP
Assessed Aug 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jwt/ruby-jwe/commit/1e719d79ba3d7aadaa39a2f08c25df077a0f9ff1 | [email protected] | Source CodeVendor |
| https://github.com/jwt/ruby-jwe/security/advisories/GHSA-c7p4-hx26-pr73 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-354 | Improper Validation of Integrity Check Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jwt ruby-jwe | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 8, 2025 | New CVE Received | [email protected] |
Volerion