CVE-2023-39964
JSON

7.5high

1Panel O&M management panel has a background arbitrary file reading vulnerability

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
2.50% (higher than 85% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pv7q-v9mv-9mh5GO-2023-2004

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.

Affected

Product or packageVersionsReported by
1Panel-dev 1Panel= 1.4.3CVE List
fit2cloud 1panel1.4.3CVE List, NVD
github.com/1Panel-dev/1Panel (Go)from 1.4.3 before 1.5.0GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

Arbitrary file reads allow an attacker to read arbitrary important configuration files on the server.

Details

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 picture1

PoC

Request /api/v1/files/loadfile, carry /etc/passwd data to read, as shown below: 微信图片_20230731112833

Impact

1Panel v1.4.3

Go Vulnerability Database

1Panel O&M management panel has a background arbitrary file reading vulnerability in github.com/1Panel-dev/1Panel

NVD (es)

1Panel es un panel de gestión de operación y mantenimiento de servidores Linux de código abierto. En la versión 1.4.3 las lecturas de archivos arbitrarios permiten a un atacante leer archivos de configuración importantes y arbitrarios en el servidor. En el archivo `api/v1/file.go`, hay una función llamada `LoadFromFile`, que lee directamente el archivo obteniendo la ruta solicitada `parámetro [ruta]`. Los parámetros de solicitud no se filtran, lo que genera una vulnerabilidad de lectura de archivos arbitrarios en segundo plano. La versión 1.5.0 tiene un parche para este problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-39964 changed 2024-10-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-pv7q-v9mv-9mh5 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2023-2004 changed 2026-03-03CC-BY-4.0
NVDCVE-2023-39964 changed 2026-06-17Public domain