
CVE-2024-41997 PoC - accompanies https://0day.gg/blog/warp-terminal-rce/
Command injection via unsanitized warp:// URI scheme handler. Full writeup at 0day.gg.
| Property | Value |
|---|---|
| CVE | CVE-2024-41997 |
| Vulnerability | Command Injection (CWE-77) |
| Target | Warp Terminal (macOS) |
| Affected | < v0.2024.07.16.08.02 |
| Impact | Arbitrary command execution |
| Auth Required | None (1-click) |
| Attack Vector | Malicious warp:// URL |
Warp registers a custom warp:// URI scheme for Docker integration. The /docker/open_subshell action accepts a shell parameter that is incorporated into a command string without sanitization:
warp://action/docker/open_subshell?container_id=0&shell=INJECTION
The container_id is restricted to hex characters but is not validated against running containers. The shell parameter accepts arbitrary input, enabling command injection via shell metacharacters.
pwn.html on a web server or open locallyThe included PoC writes id output to /tmp/hax and terminates Warp to conceal the attack.
| File | Purpose |
|---|---|
pwn.html | 1-click RCE PoC |