CVE-2023-42122 Control Web Panel wloggui Command Injection Local Privilege Escalation Vulnerability

High 7.8 Published Updated

Local attackers can escalate privileges to root via command injection in the cwpsrv process of Control Web Panel.

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-2023-42122?

CVE-2023-42122 is a high-severity command injection vulnerability in Control-Webpanel Webpanel, published on 3 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Control Web Panel wloggui Command Injection Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of Control Web Panel. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

The specific flaw exists within the cwpsrv process, which listens on the loopback interface. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of root. Was ZDI-CAN-21079.

Weakness: CWE-78

Which versions are affected by CVE-2023-42122?

It affects 1 product.

Products include Control-Webpanel Webpanel.

How do I fix CVE-2023-42122?

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

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

All Control-Webpanel Webpanel vulnerabilities

Sources

Also known as GHSA-wx6x-wf29-2wrc.

Is CVE-2023-42122 in your software?

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

Check your SBOMs for free