CVE-2024-34352 Arbitrary file write vulnerability in 1Panel

Medium 6.5 Published Updated

Attackers can exploit command injection flaws in 1Panel to write arbitrary files and achieve remote code execution on Linux servers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-34352?

CVE-2024-34352 is a medium-severity command injection vulnerability in 1Panel-dev 1Panel, published on 9 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

1Panel is an open source Linux server operation and maintenance management panel. Prior to v1.10.3-lts, there are many command injections in the project, and some of them are not well filtered, leading to arbitrary file writes, and ultimately leading to RCEs. The mirror configuration write symbol `>` can be used to achieve arbitrary file writing. This vulnerability is fixed in v1.10.3-lts.

Weakness: CWE-77

Which versions are affected by CVE-2024-34352?

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.10.3-lts
github.com/1Panel-dev/1Panel GoAll versions1.10.3-lts
github.com/1Panel-dev/1Panel GoAll versions1.10.3-lts

Products include Fit2cloud 1panel.

How do I fix CVE-2024-34352?

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

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

Is CVE-2024-34352 being exploited?

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

Sources

Also known as GHSA-f8ch-w75v-c847, GO-2024-2830.

Is CVE-2024-34352 in your software?

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

Check your SBOMs for free