Command Injection in OpenSSH scp Destination Handling
CVE-2020-15778 is a disputed command-injection vulnerability in the OpenSSH scp client through version 8.3p1. The toremote function permits shell interpretation of destination arguments containing backticks, allowing attacker-controlled destination text to execute unintended commands during a remote file transfer. OpenSSH maintainers reportedly intentionally omit validation of anomalous argument transfers because it could break existing workflows.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
An attacker who can influence an scp destination argument can cause arbitrary shell commands to execute with the privileges of the account handling the remote commands. Consequences can include unauthorized access to data, modification of files, or service disruption within that account's permissions. The vulnerability does not itself establish privilege escalation or an unauthenticated SSH-server compromise.
If you can’t patch tonight, do this now.
Do not pass untrusted destination arguments to scp. Enforce strict destination validation at the application boundary, preferably through allowlisted destination values, and reject shell metacharacters, including backticks. These are precautionary controls; no vendor-approved workaround is identified.
Patch, then assume compromise.
Apply distribution-specific OpenSSH updates that explicitly address CVE-2020-15778. For Rocky Linux 8.6 under CIQ LTS, follow advisory ciqsa-2026_1742. For affected Red Hat container products, deploy the applicable updated images and rebuild dependent images. No universal fixed upstream version is identified. Where a verified fix is unavailable, replace vulnerable workflows with a file-transfer mechanism that does not interpret untrusted destination arguments as shell commands.
2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.