CVE-2025-54887
Ruby vulnerability analysis and mitigation

Overview

CVE-2025-54887 affects the Ruby implementation of JSON Web Encryption (JWE) standard (RFC 7516) in versions 1.1.0 and below. The vulnerability was discovered and disclosed on August 7, 2025, impacting the JWE Ruby package which has seen over 7.2 million downloads. The flaw received a Critical CVSS score of 9.1, stemming from missing authentication tag validation in the AES-GCM encryption process (NVD, Security Online).

Technical details

The vulnerability stems from improper validation of integrity check values (CWE-354) in the AES-GCM authentication process. The flaw allows authentication tags of encrypted JWEs to be brute forced due to missing tag length validation. The issue affects all deployments using the package, regardless of whether AES-GCM is the chosen encryption algorithm for the JWE. The vulnerability has been assigned a CVSS v3.1 base score of 9.1 (Critical) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, indicating network accessibility, low attack complexity, and no required privileges or user interaction (GitHub Advisory).

Impact

The vulnerability can lead to multiple severe security impacts: loss of confidentiality for encrypted JWEs, ability to craft arbitrary JWEs, unauthorized decryption of JWEs through parsing differences exploitation, and potential recovery of the GCM internal GHASH key. The compromise extends to all deployments, even those not actively using AES-GCM encryption algorithms (Security Online, GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.1.1 of the JWE Ruby package, which implements proper authentication tag length checks for the AES-GCM algorithm. Due to the potential compromise of the GHASH key, users must rotate all encryption keys after upgrading to version 1.1.1 (GitHub Advisory, Security Online).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-24293CRITICAL9.2
  • RubyRuby
  • activestorage
NoYesAug 14, 2025
CVE-2025-54887CRITICAL9.1
  • RubyRuby
  • jwe
NoYesAug 08, 2025
CVE-2025-58067MEDIUM4.2
  • RubyRuby
  • google_sign_in
NoYesAug 29, 2025
CVE-2025-57821MEDIUM4.2
  • RubyRuby
  • google_sign_in
NoYesAug 27, 2025
CVE-2025-55193LOW2.7
  • RubyRuby
  • cpe:2.3:a:rubyonrails:rails
NoYesAug 13, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management