Skip to content
OpenAdvisories
High · 7.2 CVE-2023-37477 EUVD-2023-2111GHSA-p9xf-74xh-mhw5GO-2023-1940

Command injection in firewall ip functionality in 1Panel

Published Jul 18, 2023 · Updated Oct 18, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
1Panel-dev 1Panel < 1.4.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/1Panel-dev/1Panel < 1.4.3 1.4.3 GHSA-p9xf-74xh-mhw5

References