CVE-2024-49203
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
Fixed builds are available from Maven: see the table below for the fixed version per release.
Maven has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Maven library | com.querydsl:querydsl-apt | Fix pending | GHSA-6q3q-6v5j-h6vg | |
| Maven library | com.querydsl:querydsl-jpa | Fix pending | GHSA-6q3q-6v5j-h6vg | |
| Maven library | io.github.openfeign.querydsl:querydsl-apt | Fixed | 5.6.1 | GHSA-6q3q-6v5j-h6vg |
| Maven library | io.github.openfeign.querydsl:querydsl-jpa | Fixed | 5.6.1 | GHSA-6q3q-6v5j-h6vg |
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.