CVE-2025-54887: jwe Ruby - Authentication Bypass
- Cve: CVE-2025-54887
- Name: jwe Ruby - Authentication Bypass
- 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.
- Impact: Attackers can recover encryption keys and craft arbitrary JWEs, leading to loss of confidentiality and data tampering.
- Remediation: Upgrade to version 1.1.1 and rotate encryption keys.
- Vulnerability type: broken_authentication
- Vulnerability impact: data_tampering, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00268
- Epss percentile: 0.19167
- Assignee: [email protected]
- Published at: 2025-08-08T01:15:25Z
- Age in days: 473
- Modified at: 2026-06-17T09:40:52Z
- Public exploits total: 1
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-54887
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-354 | Improper Validation of Integrity Check Value |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/shinigami-777/PoC_CVE-2025-54887 | poc-in-github | 2025-08-12 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/jwt/ruby-jwe/commit/1e719d79ba3d7aadaa39a2f08c25df077a0f9ff1 | nvd | |
| https://github.com/jwt/ruby-jwe/security/advisories/GHSA-c7p4-hx26-pr73 | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| jwt/ruby-jwe | commit, fix, package, security_advisory | yes | /v1/repositories/jwt/ruby-jwe |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-08-12
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts