# CVE-2025-54887: jwe: Missing AES-GCM authentication tag validation in encrypted JWEs

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-08-07T20:55:35.000Z
- Modified: 2026-06-17T09:40:52.227Z
- Also known as: GHSA-c7p4-hx26-pr73
- Weaknesses: CWE-354
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jwt ruby-jwe: < 1.1.1
- jwe (RubyGems): before 1.1.1

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/jwt/ruby-jwe/security/advisories/GHSA-c7p4-hx26-pr73> (web)
- <https://github.com/jwt/ruby-jwe/commit/1e719d79ba3d7aadaa39a2f08c25df077a0f9ff1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54887> (advisory)
- <https://github.com/jwt/ruby-jwe> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jwe/CVE-2025-54887.yml> (web)

## Sources

- CVE List: [CVE-2025-54887](https://www.cve.org/CVERecord?id=CVE-2025-54887), CVE Terms of Use, modified 2025-08-08
- GitHub Advisory Database: [GHSA-c7p4-hx26-pr73](https://github.com/advisories/GHSA-c7p4-hx26-pr73), CC-BY-4.0, modified 2025-08-08
- NVD: [CVE-2025-54887](https://nvd.nist.gov/vuln/detail/CVE-2025-54887), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54887 · Whole record: https://cve.day/CVE-2025-54887.json · Rebuilt by cve.day 2026-11-25T22:59:02.200Z
