Data disclosure via unvalidated JPA order-by expression
Published Nov 20, 2024 · Updated Feb 21, 2025
HQL injection in Querydsl JPA 5.1.0 and OpenFeign Querydsl 6.8 allows remote attackers to read data or interrupt service. PathBuilder accepts an untrusted orderBy value as a path expression, and JPAQuery serializes it into executable HQL without restricting injected syntax. Exposure requires consuming application code to pass remote input directly into query construction; the original Querydsl community disputes that the library must defend against such use.
Summary
What happened
HQL injection in Querydsl JPA 5.1.0 and OpenFeign Querydsl 6.8 allows remote attackers to read data or interrupt service. PathBuilder accepts an untrusted orderBy value as a path expression, and JPAQuery serializes it into executable HQL without restricting injected syntax. Exposure requires consuming application code to pass remote input directly into query construction; the original Querydsl community disputes that the library must defend against such use.
The record
- CVE
- CVE-2024-49203
- Published
- Nov 20, 2024
- Updated
- Feb 21, 2025
- Vendor
- OpenFeign
- Product
- Querydsl
- Classifications
- CWE-89, CWE-564, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 20, 2024CVE publishedPublication date reported by the CVE source.
- Feb 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.8
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- CSIRTTrizna Querydsl HQL injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo