CVE-2024-49203
HIGH 8.2CVSS 3.1Querydsl vulnerable to HQL injection through orderBy
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.
- Published
- 20 Nov 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-6q3q-6v5j-h6vg
- Sources
- NVDJSONOSV GHSA-6q3q-6v5j-h6vgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N | |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | io.github.openfeign.querydsl:querydsl-jpa | >= 6.0.0.M1, < 6.10.1 | 6.10.1 |
| OSV | Maven | io.github.openfeign.querydsl:querydsl-apt | >= 6.0.0.M1, < 6.10.1 | 6.10.1 |
| OSV | Maven | io.github.openfeign.querydsl:querydsl-jpa | < 5.6.1 | 5.6.1 |
| OSV | Maven | io.github.openfeign.querydsl:querydsl-apt | < 5.6.1 | 5.6.1 |
| OSV | Maven | com.querydsl:querydsl-jpa | <= 5.1.0 | |
| OSV | Maven | com.querydsl:querydsl-apt | <= 5.1.0 |
References
- https://github.com/OpenFeign/querydsl/ · PACKAGE
- https://github.com/OpenFeign/querydsl/pull/742
- https://github.com/OpenFeign/querydsl/pull/743
- https://github.com/OpenFeign/querydsl/releases/tag/5.6.1 · WEB
- https://github.com/OpenFeign/querydsl/releases/tag/6.10.1 · WEB
- https://github.com/advisories/GHSA-6q3q-6v5j-h6vg
- https://github.com/querydsl/querydsl/issues/3757 · WEB
- https://github.com/querydsl/querydsl/releases/tag/QUERYDSL_5_1_0 · WEB
- https://github.com/spring-projects/spring-data-jpa/issues/3693
- https://www.csirt.sk/querydsl-java-library-vulnerability-permits-sql-hql-injection.html · WEB
- https://github.com/OpenFeign/querydsl/security/advisories/GHSA-6q3q-6v5j-h6vg · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-49203 · ADVISORY
- https://github.com/CSIRTTrizna/CVE-2024-49203 · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 20 Nov 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 27 Nov 2024)