CVE-2023-40989 SQL injection in jeecgboot
Remote attackers can execute arbitrary code via SQL injection in the JeecgBoot report component, requiring immediate patching.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-40989?
CVE-2023-40989 is a critical SQL injection vulnerability in Jeecg Jeecg Boot, published on 22 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
SQL injection vulnerbility in jeecgboot jeecg-boot v 3.0, 3.5.3 that allows a remote attacker to execute arbitrary code via a crafted request to the report/jeecgboot/jmreport/queryFieldBySql component.
Weakness: CWE-89
Which versions are affected by CVE-2023-40989?
2 open source packages ship an affected version, including org.jeecgframework.boot:jeecg-boot-common. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jeecgframework.boot:jeecg-boot-common Maven | All versions | 3.6.0 |
org.jeecgframework.boot:jeecg-boot-common Maven | All versions | 3.6.0 |
Products include Jeecg Jeecg Boot.
How do I fix CVE-2023-40989?
Upgrade org.jeecgframework.boot:jeecg-boot-common to 3.6.0 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2023-40989 being exploited?
There is no known exploitation of CVE-2023-40989 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Jeecg Jeecg Boot
Sources
Also known as GHSA-rwhx-6hx7-pqc8.