CVE-2023-37477 Command injection in firewall ip functionality in 1Panel

High 7.2 Published Updated

Authenticated attackers can execute arbitrary system commands via the firewall IP endpoint, leading to full system compromise.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-37477?

CVE-2023-37477 is a high-severity command injection vulnerability in 1Panel-dev 1Panel, published on 18 Jul 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

1Panel is an open source Linux server operation and maintenance management panel. An OS command injection vulnerability exists in 1Panel firewall functionality. A specially-crafted HTTP request can lead to arbitrary command execution. An attacker can make an authenticated HTTP request to trigger this vulnerability. 1Panel firewall functionality `/hosts/firewall/ip` endpoint read user input without validation, the attacker extends the default functionality of the application, which execute system commands. An attacker can execute arbitrary code on the target system, which can lead to a complete compromise of the system. This issue has been addressed in commit `e17b80cff49` which is included in release version `1.4.3`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-78

Which versions are affected by CVE-2023-37477?

3 open source packages ship an affected version, including github.com/1Panel-dev/1Panel. It affects 1 product.

PackageAffectedFixed in
github.com/1Panel-dev/1Panel GoAll versions1.4.3
github.com/1Panel-dev/1Panel GoAll versions1.4.3
github.com/1Panel-dev/1Panel GoAll versions1.4.3

Products include Fit2cloud 1panel.

How do I fix CVE-2023-37477?

Upgrade github.com/1Panel-dev/1Panel to 1.4.3 or later.

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

Is CVE-2023-37477 being exploited?

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

Sources

Also known as GHSA-p9xf-74xh-mhw5, GO-2023-1940.

Is CVE-2023-37477 in your software?

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

Check your SBOMs for free