Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-54887

CVE-2025-54887: JWE Ruby Library Information Disclosure

CVE-2025-54887 is an information disclosure vulnerability in the JWE Ruby library that allows attackers to brute force authentication tags and decrypt JWEs. This article covers technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2025-54887 Overview

CVE-2025-54887 is a critical cryptographic vulnerability in the ruby-jwe library, 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 due to improper integrity check validation. This weakness (CWE-354: Improper Validation of Integrity Check Value) may result in loss of confidentiality for JWEs and provide attackers with the ability to craft arbitrary JWEs.

Critical Impact

Attackers can modify JWEs to decrypt to arbitrary values, extract plaintext through parsing oracle attacks, and recover the GCM internal GHASH key, compromising cryptographic integrity even for non-AES-GCM users.

Affected Products

  • ruby-jwe versions 1.1.0 and below
  • Applications using ruby-jwe for JSON Web Encryption
  • Ruby applications implementing RFC 7516 JWE standard with the affected library

Discovery Timeline

  • 2025-08-08 - CVE-2025-54887 published to NVD
  • 2025-08-08 - Last updated in NVD database

Technical Details for CVE-2025-54887

Vulnerability Analysis

The vulnerability exists in the AES-GCM decryption implementation within the ruby-jwe library. The core issue is that the library did not properly validate the byte size of authentication tags before using them in the decryption process. GCM (Galois/Counter Mode) authentication tags are critical security components that ensure the integrity and authenticity of encrypted data.

Without proper validation of tag length, an attacker can submit truncated or malformed authentication tags. This creates a brute-force opportunity where the reduced tag space dramatically decreases the computational effort required to forge valid authentication tags. The attack impacts confidentiality through multiple vectors: JWEs can be modified to decrypt to attacker-controlled values, decrypted content can be extracted by observing parsing differences (a form of oracle attack), and critically, the GCM internal GHASH key can be recovered.

The GHASH key recovery is particularly severe because even users who do not directly use AES-GCM encryption algorithms are affected. Once the GHASH key is compromised, attackers can forge authentication tags for any future or past messages encrypted with the same key, requiring mandatory key rotation after patching.

Root Cause

The root cause is the absence of authentication tag length validation in the lib/jwe/enc/aes_gcm.rb file. The original implementation accepted authentication tags of any byte size without verification, allowing attackers to supply truncated tags that are easier to brute force. According to the GCM specification, authentication tags should be exactly 16 bytes (128 bits) for full security strength.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Intercepting encrypted JWE tokens transmitted over the network
  2. Submitting modified JWE tokens with truncated authentication tags to the vulnerable application
  3. Observing application responses to determine decryption success or failure
  4. Using differential analysis to brute force valid authentication tags
  5. Recovering the GHASH key through cryptanalytic techniques on the weakened GCM implementation
ruby
         cipher.send(direction)
         cipher.key = cek
         cipher.iv = iv
-        cipher.auth_tag = tag if direction == :decrypt
+        if direction == :decrypt
+          raise JWE::InvalidData, 'Invalid ciphertext or authentication tag' unless tag.bytesize == 16
+
+          cipher.auth_tag = tag
+        end
         cipher.auth_data = auth_data
       end

Source: GitHub Commit

The patch adds explicit validation requiring the authentication tag to be exactly 16 bytes before proceeding with decryption, raising a JWE::InvalidData exception for malformed tags.

Detection Methods for CVE-2025-54887

Indicators of Compromise

  • Unusual patterns of JWE decryption failures in application logs
  • High volume of JWE token submissions with varying authentication tag lengths
  • Anomalous network traffic patterns suggesting oracle-style probing attacks
  • Evidence of tampered JWE tokens in request logs with non-standard tag sizes

Detection Strategies

  • Monitor application logs for increased JWE::InvalidData or authentication tag errors after patching
  • Implement network-level detection for repeated JWE token submissions from single sources
  • Audit application dependencies to identify vulnerable ruby-jwe versions using bundle audit or similar tools
  • Review historical logs for patterns consistent with brute-force authentication tag attacks

Monitoring Recommendations

  • Enable detailed logging for JWE decryption operations including tag validation failures
  • Configure alerting on repeated failed decryption attempts from individual IP addresses
  • Implement rate limiting on endpoints that process JWE tokens
  • Monitor for unusual token structure anomalies in incoming JWE payloads

How to Mitigate CVE-2025-54887

Immediate Actions Required

  • Upgrade ruby-jwe to version 1.1.1 immediately
  • Rotate all encryption keys used with the affected library versions after upgrading
  • Audit systems for potential exploitation using application logs
  • Review all applications that depend on ruby-jwe for vulnerable versions

Patch Information

The vulnerability is fixed in ruby-jwe version 1.1.1. The patch adds explicit validation to ensure authentication tags are exactly 16 bytes before processing decryption operations. The fix is available in commit 1e719d79ba3d7aadaa39a2f08c25df077a0f9ff1.

For detailed information, refer to the GitHub Security Advisory GHSA-c7p4-hx26-pr73.

Workarounds

  • Upgrade to version 1.1.1 as the primary remediation (no practical workaround exists)
  • Implement application-level validation of JWE token structure before processing
  • Consider network-level filtering to reject malformed JWE tokens at the edge
  • Temporarily disable JWE-dependent functionality if patching is delayed
bash
# Upgrade ruby-jwe to patched version
bundle update jwe

# Verify installed version
bundle show jwe

# Run security audit to confirm fix
bundle audit check --update

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechJwe

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-354
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-c7p4-hx26-pr73
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English