CVE-2023-34602 JeecgBoot vulnerable to SQL injection in queryTableDictItemsByCode

High 7.5 Published Updated

SQL injection in JeecgBoot allows attackers to read or modify database contents via the queryTableDictItemsByCode API endpoint.

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-34602?

CVE-2023-34602 is a high-severity SQL injection vulnerability in n/a, published on 19 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

JeecgBoot up to v 3.5.1 was discovered to contain a SQL injection vulnerability via the component queryTableDictItemsByCode at org.jeecg.modules.api.controller.SystemApiController.

Weakness: CWE-89

Which versions are affected by CVE-2023-34602?

2 open source packages ship an affected version, including org.jeecgframework.boot:jeecg-boot-parent. It affects 1 product.

PackageAffectedFixed in
org.jeecgframework.boot:jeecg-boot-parent MavenAll versions3.5.1
org.jeecgframework.boot:jeecg-boot-parent MavenAll versions3.5.1

Products include Jeecg Jeecgboot.

How do I fix CVE-2023-34602?

Upgrade org.jeecgframework.boot:jeecg-boot-parent to 3.5.1 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-34602 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34602 exists.

Sources

Also known as GHSA-784x-7w88-w564.

Is CVE-2023-34602 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free