CVE-2022-4566 y_project RuoYi GenController sql injection

Medium 5.5 Published Updated

Attackers can exploit SQL injection in RuoYi GenController to read or modify database contents, requiring a patch for mitigation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-4566?

CVE-2022-4566 is a medium-severity SQL injection vulnerability in Ruoyi Ruoyi, published on 16 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability, which was classified as critical, has been found in y_project RuoYi 4.7.5. This issue affects some unknown processing of the file com/ruoyi/generator/controller/GenController. The manipulation leads to sql injection. The name of the patch is 167970e5c4da7bb46217f576dc50622b83f32b40. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-215975.

Weakness: CWE-89, CWE-707

Which versions are affected by CVE-2022-4566?

It affects 1 product.

Products include Ruoyi Ruoyi.

How do I fix CVE-2022-4566?

No fix has been published for CVE-2022-4566 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-2022-4566 being exploited?

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

All Ruoyi Ruoyi vulnerabilities

Sources

Also known as GHSA-56mg-c7p2-w99m.

Is CVE-2022-4566 in your software?

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

Check your SBOMs for free