CVE-2024-43804 OS Command Injection via Port Scan Functionality in Roxy-WI

High 8.8 Published Updated

Authenticated attackers can execute arbitrary OS commands on the server via the port scan feature due to unsanitized input in subprocess calls.

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

What is CVE-2024-43804?

CVE-2024-43804 is a high-severity command injection vulnerability in roxy-wi, published on 29 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Roxy-WI is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. An OS Command Injection vulnerability allows any authenticated user on the application to execute arbitrary code on the web application server via port scanning functionality. User-supplied input is used without validation when constructing and executing an OS command. User supplied JSON POST data is parsed and if "id" JSON key does not exist, JSON value supplied via "ip" JSON key is assigned to the "ip" variable. Later on, "ip" variable which can be controlled by the attacker is used when constructing the cmd and cmd1 strings without any extra validation. Then, server_mod.subprocess_execute function is called on both cmd1 and cmd2. When the definition of the server_mod.subprocess_execute() function is analyzed, it can be seen that subprocess.Popen() is called on the input parameter with shell=True which results in OS Command Injection. This issue has not yet been patched. Users are advised to contact the Roxy-WI to coordinate a fix.

Weakness: CWE-78

Which versions are affected by CVE-2024-43804?

It affects 1 product.

Products include Roxy-Wi Roxy-Wi.

How do I fix CVE-2024-43804?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-43804 being exploited?

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

Sources

Also known as GHSA-qc52-vwwj-5585.

Is CVE-2024-43804 in your software?

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

Check your SBOMs for free