# CVE-2024-49203: Querydsl vulnerable to HQL injection through orderBy

- Severity: High (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2024-11-20T00:00:00.000Z
- Modified: 2026-06-17T07:59:30.707Z
- Also known as: GHSA-6q3q-6v5j-h6vg
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- querydsl querydsl: 5.1.0
- openfeign_querydsl openfeign_querydsl: 6.8
- io.github.openfeign.querydsl:querydsl-jpa (Maven): from 6.0.0.M1 before 6.10.1; before 5.6.1
- io.github.openfeign.querydsl:querydsl-apt (Maven): from 6.0.0.M1 before 6.10.1; before 5.6.1
- com.querydsl:querydsl-jpa (Maven): up to 5.1.0
- com.querydsl:querydsl-apt (Maven): up to 5.1.0

## Every score

- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/querydsl/querydsl/releases/tag/QUERYDSL_5_1_0> (web)
- <https://www.csirt.sk/querydsl-java-library-vulnerability-permits-sql-hql-injection.html> (web)
- <https://github.com/querydsl/querydsl/issues/3757> (web)
- <https://github.com/OpenFeign/querydsl/>
- <https://github.com/OpenFeign/querydsl/releases/tag/5.6.1> (web)
- <https://github.com/OpenFeign/querydsl/pull/742>
- <https://github.com/advisories/GHSA-6q3q-6v5j-h6vg>
- <https://github.com/OpenFeign/querydsl/releases/tag/6.10.1> (web)
- <https://github.com/OpenFeign/querydsl/pull/743>
- <https://github.com/spring-projects/spring-data-jpa/issues/3693>
- <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)
- <https://github.com/OpenFeign/querydsl> (package)

## Sources

- CVE List: [CVE-2024-49203](https://www.cve.org/CVERecord?id=CVE-2024-49203), CVE Terms of Use, modified 2025-02-21
- GitHub Advisory Database: [GHSA-6q3q-6v5j-h6vg](https://github.com/advisories/GHSA-6q3q-6v5j-h6vg), CC-BY-4.0, modified 2025-10-13
- NVD: [CVE-2024-49203](https://nvd.nist.gov/vuln/detail/CVE-2024-49203), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-49203 · Whole record: https://cve.day/CVE-2024-49203.json · Rebuilt by cve.day 2026-11-25T22:58:48.927Z
