{"id":"CVE-2023-39966","aliases":["CVE-2023-39966","GHSA-hf7j-xj3w-87g4","GO-2023-2006"],"related":[],"kind":"vulnerability","state":"published","title":"1Panel arbitrary file write vulnerability exists in the background","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"# Summary\nAn arbitrary file write vulnerability could lead to direct control of the server\n# Details\n## Arbitrary file creation\nIn 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.It looks like this:\n\n- Vulnerable Code\n\n![微信图片_20230801092544](https://user-images.githubusercontent.com/136411443/257381095-4d7c014b-b699-4152-8b9d-2cc9399dfd85.png)\n\n# PoC\n\n- We can write the SSH public key into the /etc/.root/authorized_keys configuration file on the server.\n\n![微信图片_20230801093243](https://user-images.githubusercontent.com/136411443/257381907-38784fab-77b9-47b9-a598-44ef7ad0b65c.png)\n\n- The server was successfully written to the public key\n![微信图片_20230801093610](https://user-images.githubusercontent.com/136411443/257382468-b4836eee-f751-4b43-93ff-cb39fdc6c809.png)\n\n- Successfully connected to the target server using an SSH private key.\n![微信图片_20230801093933](https://user-images.githubusercontent.com/136411443/257383031-53f1e5de-2743-48ed-a1cf-9a5ea0c0f90b.png)\n![微信图片_20230801094037](https://user-images.githubusercontent.com/136411443/257383041-d9f64647-95d9-4711-8b9f-e152966537c9.png)\n\nAs a result, the server is directly controlled, causing serious **harm**\n\n\n# Impact\n1Panel v1.4.3","format":"markdown","source":"ghsa"},{"lang":"en","text":"1Panel arbitrary file write vulnerability in github.com/1Panel-dev/1Panel","format":"markdown","source":"go"},{"lang":"es","text":"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, una vulnerabilidad de escritura de archivos arbitraria podría llevar al control directo del servidor. En el archivo `api/v1/file.go`, hay una función llamada `SaveContent que `recibe datos JSON enviados por los usuarios en forma de solicitud POST. Y la falta de filtrado de parámetros permite operaciones de escritura de archivos arbitrarias. La versión 1.5.0 contiene un parche para este problema.","source":"nvd"}],"published":"2023-08-10T17:46:21.104Z","modified":"2026-06-17T06:13:02.973Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":"= 1.4.3","status":"affected"}],"vendor":"1Panel-dev","product":"1Panel","source":"cvelist"},{"ranges":[{"version":"1.4.3","status":"affected"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:1.4.3:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.4.3","status":"affected","fixed":"1.5.0"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.4.3","status":"affected","fixed":"1.5.0"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"go"},{"ranges":[{"status":"affected","version":"1.4.3"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:1.4.3:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-hf7j-xj3w-87g4","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/1Panel-dev/1Panel/releases/tag/v1.5.0","tags":["product","release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39966","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/1Panel-dev/1Panel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-10-04T18:15:22.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-39966","url":"https://www.cve.org/CVERecord?id=CVE-2023-39966","licence":"CVE Terms of Use","modified":"2024-10-04T18:56:18.054Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hf7j-xj3w-87g4","url":"https://github.com/advisories/GHSA-hf7j-xj3w-87g4","licence":"CC-BY-4.0","modified":"2024-08-21T14:41:55.431Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2006","url":"https://pkg.go.dev/vuln/GO-2023-2006","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:07.131Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-39966","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39966","licence":"Public domain","modified":"2026-06-17T06:13:02.973Z"}],"updatedAt":"2026-11-25T22:58:27.028Z","epss":{"score":0.00834,"percentile":0.58782,"date":"2026-12-01T12:00:22.000Z"}}