Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
UnratedPublic exploit

Command Injection in Warp legacy SSH background command path

IdentifiersCVE-2026-48732CWE-77

CVE-2026-48732 is a command injection vulnerability in Warp, affecting versions from 0.2023.03.21.08.02.stable_00 up to but not including 0.2026.05.06.15.42.stable_01. The flaw exists in Warp’s legacy SSH background command path used for SSH-backed metadata collection. Warp incorporated the remote working directory reported by the SSH session into helper commands without safely neutralizing attacker-controlled shell syntax. If a remote host, repository, or directory name is attacker-controlled, it can inject additional shell metacharacters or shell syntax into the constructed helper command, causing unintended commands to execute on the remote host under the victim’s authenticated SSH account. The vendor indicates the issue was fixed by escaping embedded single quotes in the remote working directory before constructing the legacy SSH helper command.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation results in unauthorized command execution on the connected remote host as the victim’s authenticated SSH account. Depending on that account’s privileges and accessible resources, an attacker may read, modify, or delete files, interfere with processes, alter repository contents, and disrupt availability of data or services reachable by that account. Because execution occurs in the context of an established SSH session, the impact is bounded by the victim account’s permissions on the remote system but can still be severe in development and administrative environments.

Mitigation

If you can’t patch tonight, do this now.

No complete workaround is available other than updating. Until patched, reduce exposure by avoiding use of affected Warp legacy SSH sessions against untrusted remote hosts, repositories, or directories, and avoid navigating into attacker-controlled working-directory states. Limit SSH account privileges on remote systems, use least-privilege accounts for development access, and monitor remote shell activity for unexpected commands spawned through Warp-assisted SSH workflows.

Remediation

Patch, then assume compromise.

Upgrade Warp to version 0.2026.05.06.15.42.stable_01 or later. The advisory also references 0.2026.05.13.09.15.stable_01 as a patched release. The fix escapes embedded single quotes in the remote working directory before building the legacy SSH helper command. After upgrading, review SSH command execution logs and related remote host activity for suspicious commands or anomalous metadata-collection behavior that may indicate prior exploitation.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 1 / 1 TOTALView more in app
CVE-2026-48732-pocMaturityPoCVerified exploit

This repository is a small standalone proof-of-concept for CVE-2026-48732 affecting Warp's legacy SSH background command handling. It contains two files: a README describing the vulnerability, affected/fixed versions, root cause, and usage; and a single Python script (poc.py) that serves as the exploit entry point. The script does not attack Warp or any remote host directly. Instead, it safely reproduces the vulnerable command-building pattern locally by generating a shell command of the form `cd '<cwd>' && pwd`, where the cwd is attacker-controlled and contains an embedded single quote to break out of the quoted argument. In vulnerable mode, this causes an injected `touch` command to execute and create a marker file; in fixed mode, embedded single quotes are escaped and the marker is not created. Structurally, the code is straightforward: helper functions build vulnerable and fixed command strings, a shell execution wrapper invokes `/bin/sh -c`, argument parsing exposes `--mode`, `--marker`, and `--keep-existing-marker`, and `main()` orchestrates temporary directory creation, malicious cwd construction, execution, and result reporting. The main exploit capability demonstrated is OS command injection leading to command execution, represented here by marker-file creation. Because the repository is a local simulation rather than a full remote exploit, it should be classified as a PoC rather than an operational exploit.

Saku0512Disclosed Jun 10, 2026markdownpythonnetworklocal
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.