CVE-2023-39966 1Panel arbitrary file write vulnerability exists in the background
Attackers can write arbitrary files to the server via the file save API, potentially gaining full control of the system.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-39966?
CVE-2023-39966 is a high-severity path traversal vulnerability in 1Panel-dev 1Panel, published on 10 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
1Panel is an open source Linux server operation and maintenance management panel. In version 1.4.3, an arbitrary file write vulnerability could lead to direct control of the server. In the `api/v1/file.go` file, there is a function called `SaveContentthat,It `recieves JSON data sent by users in the form of a POST request. And the lack of parameter filtering allows for arbitrary file write operations. Version 1.5.0 contains a patch for this issue.
Weakness: CWE-862
Which versions are affected by CVE-2023-39966?
3 open source packages ship an affected version, including github.com/1Panel-dev/1Panel. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/1Panel-dev/1Panel Go | From 1.4.3 | 1.5.0 |
github.com/1Panel-dev/1Panel Go | From 1.4.3 | 1.5.0 |
github.com/1Panel-dev/1Panel Go | From 1.4.3 | 1.5.0 |
Products include Fit2cloud 1panel.
How do I fix CVE-2023-39966?
Upgrade github.com/1Panel-dev/1Panel to 1.5.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-39966 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39966 exists.
Other vulnerabilities in 1Panel-dev 1Panel
Sources
Also known as GHSA-hf7j-xj3w-87g4, GO-2023-2006.