CVE-2024-49203
Querydsl vulnerable to HQL injection through orderBy
Also known as GHSA-6q3q-6v5j-h6vg
Mitigation
- Upgrade io.github.openfeign.querydsl:querydsl-jpa to one of 6.10.1, 5.6.1 (or later in the same release line).
- Upgrade io.github.openfeign.querydsl:querydsl-apt to one of 6.10.1, 5.6.1 (or later in the same release line).
Who should check
- Projects that depend on Maven package io.github.openfeign.querydsl:querydsl-jpa (>= 6.0.0.M1, < 6.10.1)
- Projects that depend on Maven package io.github.openfeign.querydsl:querydsl-apt (>= 6.0.0.M1, < 6.10.1)
- Projects that depend on Maven package com.querydsl:querydsl-jpa (<= 5.1.0)
- Projects that depend on Maven package com.querydsl:querydsl-apt (<= 5.1.0)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running querydsl 5.1.0
- Anyone running openfeign_querydsl 6.8
Vulnerability facts
- Affected
- io.github.openfeign.querydsl:querydsl-jpa >= 6.0.0.M1, < 6.10.1; io.github.openfeign.querydsl:querydsl-apt >= 6.0.0.M1, < 6.10.1; com.querydsl:querydsl-jpa <= 5.1.0; com.querydsl:querydsl-apt <= 5.1.0
- Fixed in
- 6.10.1, 5.6.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.48% chance of exploitation in 30 days (percentile 34, 2026-11-26)
- CWE
- CWE-89
- Modified
Description
Querydsl 5.1.0 and OpenFeign Querydsl 6.8 allows SQL/HQL injection in orderBy in JPAQuery. NOTE: this is disputed by a Querydsl community member because the product is not intended to defend against a developer who uses untrusted input directly in query construction.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven io.github.openfeign.querydsl:querydsl-jpa | >= 6.0.0.M1, < 6.10.1 | 6.10.1, 5.6.1 | osv |
| Maven io.github.openfeign.querydsl:querydsl-apt | >= 6.0.0.M1, < 6.10.1 | 6.10.1, 5.6.1 | osv |
| Maven com.querydsl:querydsl-jpa | <= 5.1.0 | — | osv |
| Maven com.querydsl:querydsl-apt | <= 5.1.0 | — | osv |
| n/a | — | — | nvd |
| querydsl | 5.1.0 | — | nvd |
| openfeign_querydsl | 6.8 | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-49203. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-49203.md Affected: io.github.openfeign.querydsl:querydsl-jpa >= 6.0.0.M1, < 6.10.1; io.github.openfeign.querydsl:querydsl-apt >= 6.0.0.M1, < 6.10.1; com.querydsl:querydsl-jpa <= 5.1.0; com.querydsl:querydsl-apt <= 5.1.0 Fixed in: 6.10.1, 5.6.1 Steps: 1. Search this machine and project for io.github.openfeign.querydsl:querydsl-jpa (Maven), io.github.openfeign.querydsl:querydsl-apt (Maven), com.querydsl:querydsl-jpa (Maven), com.querydsl:querydsl-apt (Maven), n/a, querydsl: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://github.com/querydsl/querydsl/releases/tag/QUERYDSL_5_1_0
- https://www.csirt.sk/querydsl-java-library-vulnerability-permits-sql-hql-injection.html
- https://github.com/querydsl/querydsl/issues/3757
- https://github.com/OpenFeign/querydsl/
- https://github.com/OpenFeign/querydsl/releases/tag/5.6.1
- https://github.com/advisories/GHSA-6q3q-6v5j-h6vg
- https://github.com/OpenFeign/querydsl/releases/tag/6.10.1
- https://github.com/spring-projects/spring-data-jpa/issues/3693
- https://github.com/CSIRTTrizna/CVE-2024-49203
- https://github.com/OpenFeign/querydsl
FAQ
Is CVE-2024-49203 being exploited?
There is no confirmed exploitation: CVE-2024-49203 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-49203?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2024-49203?
io.github.openfeign.querydsl:querydsl-jpa >= 6.0.0.M1, < 6.10.1; io.github.openfeign.querydsl:querydsl-apt >= 6.0.0.M1, < 6.10.1; com.querydsl:querydsl-jpa <= 5.1.0; com.querydsl:querydsl-apt <= 5.1.0.
Is there a fix for CVE-2024-49203?
Yes. Fixed in 6.10.1, 5.6.1. Upgrade io.github.openfeign.querydsl:querydsl-jpa to one of 6.10.1, 5.6.1 (or later in the same release line). Upgrade io.github.openfeign.querydsl:querydsl-apt to one of 6.10.1, 5.6.1 (or later in the same release line).
How do I check if I'm affected by CVE-2024-49203?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.