CVE-2023-49371 RuoYi vulnerable to SQL injection vulnerability

Critical 9.8 Published Updated

Attackers can exploit SQL injection in the department edit endpoint to read or modify database contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-49371?

CVE-2023-49371 is a critical SQL injection vulnerability in Ruoyi Ruoyi, published on 1 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

RuoYi up to v4.6 was discovered to contain a SQL injection vulnerability via /system/dept/edit.

Weakness: CWE-89

Which versions are affected by CVE-2023-49371?

2 open source packages ship an affected version, including com.ruoyi:ruoyi. It affects 1 product.

PackageAffectedFixed in
com.ruoyi:ruoyi MavenAll versions to 4.6None
com.ruoyi:ruoyi MavenAll versions to 4.6None

Products include Ruoyi Ruoyi.

How do I fix CVE-2023-49371?

No fix has been published for CVE-2023-49371 yet. Limit exposure of the affected software until one is available.

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-49371 being exploited?

There is no known exploitation of CVE-2023-49371 in the wild and no public exploit code.

All Ruoyi Ruoyi vulnerabilities

Sources

Also known as GHSA-fg29-37px-c7wm.

Is CVE-2023-49371 in your software?

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

Check your SBOMs for free