SQL Injection when creating an application with Reactive SQL backend
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures. SQL Injection vulnerability in entities for applications generated with the option "reactive with Spring WebFlux" enabled and an SQL database using r2dbc. Applications created without "reactive with Spring WebFlux" and applications with NoSQL databases are not affected. Users who have generated a microservice Gateway using the affected version may be impacted as Gateways are reactive by default. Currently, SQL injection is possible in the findAllBy(Pageable pageable, Criteria criteria) method of an entity repository class generated in these applications as the where clause using Criteria for queries are not sanitized and user input is passed on as it is by the criteria. This issue has been patched in v7.8.1. Users unable to upgrade should be careful when combining criterias and conditions as the root of the issue lies in the `EntityManager.java` class when creating the where clause via `Conditions.just(criteria.toString())`. `just` accepts the literal string provided. Criteria's `toString` method returns a plain string and this combination is vulnerable to sql injection as the string is not sanitized and will contain whatever used passed as input using any plain SQL.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jhipster | generator-jhipster | 7.0.0 to before 7.8.1 | 7.8.1 | Patch available | CNA |
| — | generator-jhipster (npm) | 7.0.0 to before 7.8.1 | 7.8.1 | Patch available | GHSA-qjmq-8hjr-qcv6 |
- generator-jhipster Vendorjhipster Affected 7.0.0 to before 7.8.1 Fixed in 7.8.1 Patch available CNA
- generator-jhipster (npm) Vendor— Affected 7.0.0 to before 7.8.1 Fixed in 7.8.1 Patch available GHSA-qjmq-8hjr-qcv6
Remediation
- Fix · CNA generator-jhipster (jhipster) Fixed in 7.8.1
- Fix · GHSA-qjmq-8hjr-qcv6 generator-jhipster (npm) Fixed in 7.8.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24815
- 2026-10-03 Alias added: GHSA-qjmq-8hjr-qcv6
References
Patch 1
Advisory 2
Sources
- CVE-2022-24815 · CVE Program
- CVE-2022-24815 · NVD
- FIRST EPSS
- GHSA-qjmq-8hjr-qcv6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences