The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2024-31033

CVE-2024-31033: Java JWT Information Disclosure Flaw

CVE-2024-31033 is an information disclosure vulnerability in JJWT (Java JWT) that may lead to weak key assumptions. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-31033 Overview

CVE-2024-31033 is a cryptographic vulnerability affecting JJWT (Java JWT) library through version 0.12.5. The vulnerability involves improper handling of certain characters during signing key operations, which could lead users to falsely believe they have configured a strong cryptographic key when in reality the effective key strength may be weaker than expected.

Critical Impact

Applications using affected JJWT versions with improperly configured signing keys may have weaker JWT authentication than intended, potentially allowing token forgery or authentication bypass in vulnerable implementations.

Affected Products

  • JJWT (Java JWT) through version 0.12.5
  • Applications using DefaultJwtParser.setSigningKey() method
  • Applications using DefaultJwtBuilder.signWith() method

Discovery Timeline

  • 2024-04-01 - CVE-2024-31033 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-31033

Vulnerability Analysis

This vulnerability affects the JJWT library's key handling mechanisms within two critical classes: DefaultJwtParser and DefaultJwtBuilder. The issue relates to how certain characters are processed during signing key operations, potentially resulting in the library ignoring specific characters within the key material.

When developers configure JWT signing keys using the setSigningKey() method in DefaultJwtParser or the signWith() method in DefaultJwtBuilder, certain characters may be silently ignored. This behavior could lead to a false sense of security where developers believe they have implemented a cryptographically strong key, when the actual effective key may be shorter or weaker than intended.

It is important to note that the vendor disputes this vulnerability. According to the JJWT maintainers, this "ignores" behavior cannot occur in any version unless there is user error in how JJWT is used. The vendor also claims that the version tested by the reporter was more than six years out of date.

Root Cause

The root cause stems from character handling logic within the key processing methods. When a signing key is passed to either setSigningKey() or signWith(), certain characters may not be properly incorporated into the cryptographic key material. This could occur due to encoding issues, character filtering, or improper string handling during key derivation.

The disputed nature of this vulnerability suggests the behavior may be contingent on specific usage patterns or deprecated API usage that conflicts with current JJWT best practices.

Attack Vector

The attack vector is network-based, requiring user interaction. An attacker would need to:

  1. Identify an application using a vulnerable JJWT configuration
  2. Determine or guess the weakened effective key material
  3. Forge JWT tokens that pass signature validation due to the reduced key entropy
  4. Use the forged tokens to bypass authentication or authorization controls

The vulnerability requires high attack complexity as the attacker must understand the specific key weakening behavior and craft tokens accordingly. Successful exploitation could result in high impact to both confidentiality and integrity of the affected application.

Due to the disputed nature of this vulnerability and the absence of verified exploit code, specific technical details of exploitation are limited. For more information, refer to the GitHub JJWT Bug Report and the vendor's response in GitHub Issue #930.

Detection Methods for CVE-2024-31033

Indicators of Compromise

  • Unexpected JWT token validation successes with tokens that should fail
  • Authentication logs showing successful logins with unusual or potentially forged tokens
  • Discrepancies between expected key lengths and actual cryptographic operations
  • Application behavior suggesting weakened authentication security

Detection Strategies

  • Review application code for usage of setSigningKey() and signWith() methods in JJWT
  • Audit JWT signing key configurations to ensure proper key encoding and handling
  • Implement token introspection to detect anomalous authentication patterns
  • Monitor for authentication events that correlate with potentially forged tokens

Monitoring Recommendations

  • Enable detailed logging for JWT validation operations
  • Monitor authentication systems for unusual token patterns or validation anomalies
  • Implement alerting for authentication failures followed by rapid successes from the same source
  • Track JJWT library versions deployed across applications

How to Mitigate CVE-2024-31033

Immediate Actions Required

  • Audit all applications using JJWT library for affected method usage
  • Review signing key configurations to ensure proper key encoding (use byte arrays rather than strings where possible)
  • Consider upgrading to the latest JJWT version and following current API best practices
  • Consult the official JJWT repository for recommended key handling practices

Patch Information

The vendor disputes this vulnerability, stating that proper usage of the JJWT library prevents this behavior. Organizations should:

  1. Review the vendor's response on GitHub Issue #930 for official guidance
  2. Ensure they are using current JJWT versions (not versions more than six years old)
  3. Follow the library's documented best practices for key configuration
  4. Use the builder pattern APIs as recommended in current documentation

Workarounds

  • Use byte array representations for signing keys instead of String parameters to avoid character encoding issues
  • Implement explicit key validation before passing keys to JJWT methods
  • Consider using the Keys.secretKeyFor() helper method for generating appropriately strong keys
  • Add unit tests to verify actual key strength matches expected key configuration
bash
# Maven dependency check for JJWT version
mvn dependency:tree | grep jjwt

# Update JJWT to latest version in pom.xml
# Ensure proper key handling by using SecretKey objects instead of raw strings

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechJjwt

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • Technical References
  • GitHub JJWT Bug Report

  • GitHub JJWT Repository

  • GitHub Issue Comment #930

  • Viral Patel JWT Token Guide
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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