CVE-2025-54887

CRITICAL

jwe <1.1.0 - Confidentiality Disclosure

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-54887. PoCs published by shinigami-777.

AI-analyzed exploit summary This PoC demonstrates a brute-force attack on the authentication tag of JWE tokens in ruby-jwe <= 1.1.0, allowing arbitrary JWE forgery and decryption. It includes scripts to brute-force the tag and modify ciphertext to change decrypted content.

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.

Exploits (1)

nomisec WORKING POC
by shinigami-777 · poc
https://github.com/shinigami-777/PoC_CVE-2025-54887

This PoC demonstrates a brute-force attack on the authentication tag of JWE tokens in ruby-jwe <= 1.1.0, allowing arbitrary JWE forgery and decryption. It includes scripts to brute-force the tag and modify ciphertext to change decrypted content.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: ruby-jwe version <= 1.1.0
No auth needed
Prerequisites: Access to a JWE token encrypted with 'dir' and 'A256GCM' algorithms · Knowledge of part of the plaintext for ciphertext manipulation
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 9.1
EPSS 0.0004
EPSS Percentile 12.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-354
Status published
Products (2)
jwt/ruby-jwe < 1.1.1
rubygems/jwe 0 - 1.1.1RubyGems
Published Aug 08, 2025
Tracked Since Feb 18, 2026