CVE-2023-39964 1Panel O&M management panel has a background arbitrary file reading vulnerability

High 7.5 Published Updated

An attacker can read arbitrary configuration files on the server due to unfiltered path parameters in the file loading function.

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-39964?

CVE-2023-39964 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, arbitrary file reads allow an attacker to read arbitrary important configuration files on the server. In the `api/v1/file.go` file, there is a function called `LoadFromFile`, which directly reads the file by obtaining the requested path `parameter[path]`. The request parameters are not filtered, resulting in a background arbitrary file reading vulnerability. Version 1.5.0 has a patch for this issue.

Weakness: CWE-22

Which versions are affected by CVE-2023-39964?

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 GoFrom 1.4.31.5.0
github.com/1Panel-dev/1Panel GoFrom 1.4.31.5.0
github.com/1Panel-dev/1Panel GoFrom 1.4.31.5.0

Products include Fit2cloud 1panel.

How do I fix CVE-2023-39964?

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-39964 being exploited?

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

Sources

Also known as GHSA-pv7q-v9mv-9mh5, GO-2023-2004.

Is CVE-2023-39964 in your software?

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

Check your SBOMs for free