{"id":"CVE-2024-2352","aliases":["CVE-2024-2352","GHSA-x2vg-5wrf-vj6v","GO-2024-2636"],"related":[],"kind":"vulnerability","state":"published","title":"1Panel swap baseApi.UpdateDeviceSwap command injection","summary":"A vulnerability, which was classified as critical, has been found in 1Panel up to 1.10.1-lts. Affected by this issue is the function baseApi.UpdateDeviceSwap of the file /api/v1/toolbox/device/update/swap. The manipulation of the argument Path with the input 123123123\\nopen -a Calculator leads to command injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-256304.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability, which was classified as critical, has been found in 1Panel up to 1.10.1-lts. Affected by this issue is the function baseApi.UpdateDeviceSwap of the file /api/v1/toolbox/device/update/swap. The manipulation of the argument Path with the input 123123123\\nopen -a Calculator leads to command injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-256304.","source":"cvelist"},{"lang":"de","text":"Eine kritische Schwachstelle wurde in 1Panel bis 1.10.1-lts entdeckt. Hierbei geht es um die Funktion baseApi.UpdateDeviceSwap der Datei /api/v1/toolbox/device/update/swap. Durch Manipulation des Arguments Path mit der Eingabe 123123123\\nopen -a Calculator mit unbekannten Daten kann eine command injection-Schwachstelle ausgenutzt werden. Umgesetzt werden kann der Angriff über das Netzwerk. Der Exploit steht zur öffentlichen Verfügung. Als bestmögliche Massnahme wird Patching empfohlen.","source":"cvelist"},{"lang":"en","text":"1Panel is vulnerable to command injection. This vulnerability has been classified as critical, has been found in 1Panel up to 1.10.1-lts. Affected by this issue is the function baseApi.UpdateDeviceSwap of the file /api/v1/toolbox/device/update/swap. The manipulation of the argument Path with the input 123123123\\nopen -a Calculator leads to command injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-256304.","format":"markdown","source":"ghsa"},{"lang":"en","text":"1Panel is vulnerable to command injection in github.com/1Panel-dev/1Panel","format":"markdown","source":"go"},{"lang":"es","text":"Una vulnerabilidad fue encontrada en 1Panel hasta 1.10.1-lts y clasificada como crítica. La función baseApi.UpdateDeviceSwap del archivo /api/v1/toolbox/device/update/swap es afectada por esta vulnerabilidad. La manipulación del argumento Ruta con la entrada 123123123\\nopen -a Calculadora conduce a la inyección de comando. El ataque puede lanzarse de forma remota. El exploit ha sido divulgado al público y puede utilizarse. Se recomienda aplicar un parche para solucionar este problema. El identificador de esta vulnerabilidad es VDB-256304.","source":"nvd"}],"published":"2024-03-10T01:31:05.215Z","modified":"2026-06-17T07:24:22.287Z","severity":{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"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-77"],"affected":[{"ranges":[{"version":"1.10.1-lts","status":"affected"}],"product":"1Panel","source":"cvelist"},{"ranges":[{"version":"1.10.1","status":"affected"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:1.10.1:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.1-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.1-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.2-lts"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://vuldb.com/?id.256304","tags":["permissions-required","technical-description","vdb-entry","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://vuldb.com/?ctiid.256304","tags":["permissions-required","signature","vdb-entry","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/1Panel-dev/1Panel/pull/4131","tags":["exploit","fix","issue-tracking","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/1Panel-dev/1Panel/pull/4131#issue-2176105990","tags":["exploit","fix","issue-tracking","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/1Panel-dev/1Panel/pull/4131/commits/0edd7a9f6f5100aab98a0ea6e5deedff7700396c","tags":["fix","issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-2352","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/1Panel-dev/1Panel","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-x2vg-5wrf-vj6v","tags":["advisory"],"sources":["go"]}],"credits":["linyz-tel (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-08-12T15:20:24.448Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-2352","url":"https://www.cve.org/CVERecord?id=CVE-2024-2352","licence":"CVE Terms of Use","modified":"2024-08-12T18:09:02.319Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x2vg-5wrf-vj6v","url":"https://github.com/advisories/GHSA-x2vg-5wrf-vj6v","licence":"CC-BY-4.0","modified":"2024-06-04T16:56:41.720Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2636","url":"https://pkg.go.dev/vuln/GO-2024-2636","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:55.139Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-2352","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-2352","licence":"Public domain","modified":"2026-06-17T07:24:22.287Z"}],"updatedAt":"2026-11-25T22:58:37.384Z","epss":{"score":0.03044,"percentile":0.87885,"date":"2026-12-01T12:00:22.000Z"}}