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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.48% (percentile 34, 2026-11-26)
- **CWE:** CWE-89
- **Aliases:** GHSA-6q3q-6v5j-h6vg
- **Published:** 2024-11-20T00:00:00.000Z
- **Modified:** 2026-06-17T07:59:30.707Z

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

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

- Maven `io.github.openfeign.querydsl:querydsl-jpa`: affected \>= 6.0.0.M1, \< 6.10.1; fixed 6.10.1, 5.6.1 (osv)
- Maven `io.github.openfeign.querydsl:querydsl-apt`: affected \>= 6.0.0.M1, \< 6.10.1; fixed 6.10.1, 5.6.1 (osv)
- Maven `com.querydsl:querydsl-jpa`: affected \<= 5.1.0; fixed no fix listed yet (osv)
- Maven `com.querydsl:querydsl-apt`: affected \<= 5.1.0; fixed no fix listed yet (osv)
- n/a: see vendor advisory (nvd)
- querydsl: 5.1.0 (nvd)
- openfeign\_querydsl: 6.8 (nvd)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/OpenFeign/querydsl/security/advisories/GHSA-6q3q-6v5j-h6vg>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-49203>
- patch: <https://github.com/OpenFeign/querydsl/pull/742>
- patch: <https://github.com/OpenFeign/querydsl/pull/743>
- other: <https://github.com/querydsl/querydsl/releases/tag/QUERYDSL_5_1_0>
- other: <https://www.csirt.sk/querydsl-java-library-vulnerability-permits-sql-hql-injection.html>
- other: <https://github.com/querydsl/querydsl/issues/3757>
- other: <https://github.com/OpenFeign/querydsl/>
- other: <https://github.com/OpenFeign/querydsl/releases/tag/5.6.1>
- other: <https://github.com/advisories/GHSA-6q3q-6v5j-h6vg>
- other: <https://github.com/OpenFeign/querydsl/releases/tag/6.10.1>
- other: <https://github.com/spring-projects/spring-data-jpa/issues/3693>
- other: <https://github.com/CSIRTTrizna/CVE-2024-49203>
- other: <https://github.com/OpenFeign/querydsl>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-49203>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6q3q-6v5j-h6vg> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-49203> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-49203>
