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-49203

CVE-2024-49203: Querydsl SQL/HQL Injection Vulnerability

CVE-2024-49203 is a SQL/HQL injection flaw in Querydsl 5.1.0 and OpenFeign Querydsl 6.8 affecting the orderBy method in JPAQuery. This post covers the technical details, affected versions, security impact, and mitigation.

Published: January 28, 2026

CVE-2024-49203 Overview

CVE-2024-49203 is a SQL/HQL injection vulnerability affecting Querydsl 5.1.0 and OpenFeign Querydsl 6.8. The vulnerability exists in the orderBy function within JPAQuery, allowing attackers to inject malicious SQL or HQL statements when user-controlled input is passed directly to query construction methods. This vulnerability is disputed by a Querydsl community member who argues that the product is not intended to defend against developers who use untrusted input directly in query construction.

Critical Impact

Applications using Querydsl that pass unsanitized user input to the orderBy method in JPAQuery are vulnerable to SQL/HQL injection, potentially allowing unauthorized data access, modification, or deletion.

Affected Products

  • Querydsl 5.1.0
  • OpenFeign Querydsl 6.8
  • Applications using vulnerable versions with unsanitized user input in query construction

Discovery Timeline

  • 2024-11-20 - CVE-2024-49203 published to NVD
  • 2025-02-21 - Last updated in NVD database

Technical Details for CVE-2024-49203

Vulnerability Analysis

This vulnerability is categorized as an SQL Injection vulnerability affecting the Querydsl Java library, a popular framework for constructing type-safe SQL-like queries for various backends including JPA, SQL, and MongoDB. The vulnerability specifically manifests in the orderBy method of the JPAQuery class.

When developers pass untrusted user input directly to the orderBy function without proper validation or sanitization, an attacker can inject arbitrary SQL or HQL statements. This occurs because the library does not perform sufficient input validation on the ordering parameters, trusting that developers will only pass safe, validated input.

The dispute surrounding this CVE centers on the design philosophy of Querydsl. Community members argue that the library is designed as a query builder tool, not a security framework, and that responsibility for input validation lies with the application developer rather than the library itself. Regardless of this dispute, the practical security impact remains significant for applications that do not properly sanitize user input before passing it to Querydsl methods.

Root Cause

The root cause of this vulnerability lies in insufficient input sanitization within the orderBy method of the JPAQuery class. When string-based ordering expressions are accepted without proper escaping or parameterization, the library directly incorporates these values into the generated SQL/HQL query. This allows specially crafted input to break out of the intended query context and execute arbitrary database commands.

Attack Vector

An attacker can exploit this vulnerability by supplying malicious input through any application endpoint that uses user-controlled data for query ordering. Common attack vectors include:

  1. Sort parameter manipulation: Web applications often expose sorting functionality through URL parameters (e.g., ?sort=name). If this parameter is passed directly to Querydsl's orderBy method, an attacker can inject SQL/HQL payloads.

  2. API endpoint exploitation: REST APIs accepting sort or order parameters can be targeted when these values flow directly into query construction.

  3. Form field injection: Applications accepting ordering preferences through form submissions without validation are susceptible.

The vulnerability allows attackers to potentially read sensitive data from other database tables, modify or delete data, or in some cases execute administrative operations on the database server. The specific impact depends on the database permissions of the application's database user and the underlying database system.

For technical details on the vulnerability mechanism and proof-of-concept examples, refer to the CSIRT Slovakia advisory and the related GitHub Issue #3757.

Detection Methods for CVE-2024-49203

Indicators of Compromise

  • Unusual SQL syntax errors in application logs indicating injection attempts
  • Database query logs showing unexpected ORDER BY clauses with subqueries or UNION statements
  • Application behavior anomalies when sorting functionality is used with special characters
  • Failed authentication or authorization followed by successful data access patterns

Detection Strategies

  • Implement SQL injection detection rules in Web Application Firewalls (WAF) to identify malicious ordering parameters
  • Enable detailed database query logging to detect anomalous query structures
  • Deploy runtime application self-protection (RASP) solutions to monitor query construction in real-time
  • Use static application security testing (SAST) tools to identify instances where user input flows to Querydsl orderBy methods

Monitoring Recommendations

  • Monitor application logs for SQL syntax errors that may indicate injection attempts
  • Set up alerts for unusual database query patterns, particularly those involving ORDER BY with complex expressions
  • Track and baseline normal sorting parameter values to detect deviations
  • Implement anomaly detection for database access patterns following sort operations

How to Mitigate CVE-2024-49203

Immediate Actions Required

  • Audit all code paths where user input is passed to Querydsl orderBy methods
  • Implement strict input validation using allowlists for acceptable sort field names
  • Upgrade to patched versions: OpenFeign Querydsl 5.6.1 or 6.10.1
  • Review and test all sorting functionality in the application for injection vulnerabilities

Patch Information

OpenFeign has released patched versions addressing this vulnerability. Organizations should upgrade to the following versions:

  • OpenFeign Querydsl 5.6.1: Release 5.6.1
  • OpenFeign Querydsl 6.10.1: Release 6.10.1

Additional context and discussions can be found in Pull Request #742 and Pull Request #743. For applications using the original Querydsl library, monitor the Querydsl GitHub repository for updates.

Workarounds

  • Implement a strict allowlist of permitted sort field names and reject any input not on the list
  • Use enum-based sorting options in the application layer to prevent arbitrary string input from reaching query construction
  • Wrap Querydsl calls with input validation methods that sanitize ordering parameters before use
  • Consider using typed path expressions instead of string-based ordering to leverage Querydsl's type-safe features
bash
# Example: Maven dependency update to patched version
# For OpenFeign Querydsl users, update pom.xml:
# <dependency>
#     <groupId>io.github.openfeign.querydsl</groupId>
#     <artifactId>querydsl-jpa</artifactId>
#     <version>6.10.1</version>
# </dependency>

# Verify current Querydsl version in your project
mvn dependency:tree | grep querydsl

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechQuerydsl

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.11%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • OpenFeign Querydsl Repository

  • OpenFeign Querydsl Pull Request #742

  • OpenFeign Querydsl Pull Request #743

  • OpenFeign Querydsl Release 5.6.1

  • OpenFeign Querydsl Release 6.10.1

  • GitHub Security Advisory GHSA-6q3q-6v5j-h6vg

  • Querydsl Issue #3757

  • Querydsl Release QUERYDSL_5_1_0

  • Spring Data JPA Issue #3693

  • CSIRT Querydsl SQL Injection Vulnerability
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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