CVE-2023-49371 RuoYi vulnerable to SQL injection vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
com.ruoyi:ruoyi Maven | All versions to 4.6 | None |
com.ruoyi:ruoyi Maven | All versions to 4.6 | None |
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.
Other vulnerabilities in Ruoyi Ruoyi
Sources
Also known as GHSA-fg29-37px-c7wm.