CVE-2024-2352: 1Panel is vulnerable to command injection
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.
Published Mar 10, 2024 · Updated Mar 11, 2024
Affected packages
github.com/1Panel-dev/1Panel
- Ecosystem
- Go
- Affected
- < 1.10.1-lts
- Fixed in
- 1.10.1-lts
- Check
go list -m github.com/1Panel-dev/1Panel
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-2352
- https://github.com/1Panel-dev/1Panel/pull/4131
- https://github.com/1Panel-dev/1Panel/pull/4131#issue-2176105990
- https://github.com/1Panel-dev/1Panel/pull/4131/commits/0edd7a9f6f5100aab98a0ea6e5deedff7700396c
- https://vuldb.com/?ctiid.256304
- https://vuldb.com/?id.256304
- https://github.com/advisories/GHSA-x2vg-5wrf-vj6v
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2025-34410
1Panel contains a cross-site request forgery (CSRF) vulnerability in the Change Username functionality
high7.1No fixDec 10, 2025CVE-2025-34429
1Panel contains a cross-site request forgery (CSRF) vulnerability in the web port configuration functionality
high7.1No fixDec 10, 2025CVE-2025-34430
1Panel contains a cross-site request forgery (CSRF) vulnerability in the panel name management functionality
medium4.3No fixDec 10, 2025CVE-2025-66507
1Panel – CAPTCHA Bypass via Client-Controlled Flag
high7.5Dec 8, 2025CVE-2025-66508
1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers
medium6.5Dec 8, 2025CVE-2024-39907
1Panel has an SQL injection issue related to the orderBy clause
critical9.8Jul 18, 2024
