# CVE-2024-2352: 1Panel swap baseApi.UpdateDeviceSwap command injection

- Severity: Medium 6.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.04%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-03-10T01:31:05.215Z
- Modified: 2026-06-17T07:24:22.287Z
- Also known as: GHSA-x2vg-5wrf-vj6v, GO-2024-2636
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- 1Panel: 1.10.1-lts
- fit2cloud 1panel: 1.10.1; before 1.10.2-lts
- github.com/1Panel-dev/1Panel (Go): before 1.10.1-lts

## Every score

- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/1Panel-dev/1Panel/pull/4131> (exploit, fix, issue-tracking, web)
- <https://github.com/1Panel-dev/1Panel/pull/4131#issue-2176105990> (exploit, fix, issue-tracking, web)
- <https://vuldb.com/?id.256304> (permissions-required, technical-description, vdb-entry, web)
- <https://vuldb.com/?ctiid.256304> (permissions-required, signature, vdb-entry, web)
- <https://github.com/1Panel-dev/1Panel/pull/4131/commits/0edd7a9f6f5100aab98a0ea6e5deedff7700396c> (fix, issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-2352> (advisory)
- <https://github.com/1Panel-dev/1Panel> (package)
- <https://github.com/advisories/GHSA-x2vg-5wrf-vj6v> (advisory)

## Sources

- CVE List: [CVE-2024-2352](https://www.cve.org/CVERecord?id=CVE-2024-2352), CVE Terms of Use, modified 2024-08-12
- GitHub Advisory Database: [GHSA-x2vg-5wrf-vj6v](https://github.com/advisories/GHSA-x2vg-5wrf-vj6v), CC-BY-4.0, modified 2024-06-04
- Go Vulnerability Database: [GO-2024-2636](https://pkg.go.dev/vuln/GO-2024-2636), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-2352](https://nvd.nist.gov/vuln/detail/CVE-2024-2352), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-2352 · Whole record: https://cve.day/CVE-2024-2352.json · Rebuilt by cve.day 2026-11-25T22:58:37.384Z
