{"id":"CVE-2024-2352","published":"2024-03-10T01:31:05Z","modified":"2024-08-12T18:09:02Z","title":"1Panel swap baseApi.UpdateDeviceSwap command injection","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03044,"percentile":0.87849,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://vuldb.com/?id.256304","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.256304","tags":["signature","permissions-required"]},{"url":"https://github.com/1Panel-dev/1Panel/pull/4131","tags":["issue-tracking"]},{"url":"https://github.com/1Panel-dev/1Panel/pull/4131#issue-2176105990","tags":["exploit","issue-tracking"]},{"url":"https://github.com/1Panel-dev/1Panel/pull/4131/commits/0edd7a9f6f5100aab98a0ea6e5deedff7700396c","tags":["issue-tracking","patch"]}],"priority":{"score":27.0,"factors":[{"name":"EPSS percentile","points":17.57},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.41}]},"affectedVersions":[{"vendor":"n/a","product":"1Panel","versions":["1.10.1-lts"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-12T15:20:24.448783Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","vulnerableRanges":["<1.10.1-lts"],"patched":["1.10.1-lts"],"from":["GHSA-x2vg-5wrf-vj6v","GO-2024-2636"],"provenance":"source"}],"summary":{"text":"The 1Panel server management panel, up to version 1.10.1-lts, contains a command injection flaw in the baseApi.UpdateDeviceSwap function, reachable via the /api/v1/toolbox/device/update/swap endpoint, where the Path argument is not properly neutralised before being used in a command. An attacker can exploit this remotely by submitting crafted input in the Path argument, and the attack requires low privileges (an authenticated account) with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:02Z"},"euvd":{"id":"EUVD-2024-1032","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/1Panel-dev/1Panel/pull/4131#issue-2176105990"],"lineage":{"packageHistory":[{"cve":"CVE-2023-39965","published":"2023-08-10","fixed":"1.5.0","kev":false},{"cve":"CVE-2023-39966","published":"2023-08-10","fixed":"1.5.0","kev":false},{"cve":"CVE-2024-24768","published":"2024-02-05","fixed":"1.9.6","kev":false,"link":{"from":"CVE-2024-24768","to":"CVE-2024-2352","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/1Panel-dev/1Panel","fromFixed":"1.9.6","toFixed":"1.10.1-lts","daysApart":34}]}},{"cve":"CVE-2024-2352","published":"2024-03-10","fixed":"1.10.1-lts","kev":false},{"cve":"CVE-2024-27288","published":"2024-03-06","fixed":"1.10.1-lts","kev":false},{"cve":"CVE-2024-30257","published":"2024-04-18","fixed":"1.10.3","kev":false,"link":{"from":"CVE-2024-2352","to":"CVE-2024-30257","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/1Panel-dev/1Panel","fromFixed":"1.10.1-lts","toFixed":"1.10.3","daysApart":39}]}},{"cve":"CVE-2024-34352","published":"2024-05-09","fixed":"1.10.3-lts","kev":false}],"package":"Go:github.com/1Panel-dev/1Panel"}}