Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2020-15778: Command Injection in OpenSSH scp Destination Handling

Published Jul 24, 2020 · Updated 24 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.4High · v3.1
EPSS13.7%97th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
NetAppVMwareOpenbsd
IdentifiersCVE-2020-15778CWE-78 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

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.

Mitigation

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.

Remediation

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2020-15778-ExploitThis repository contains two Python exploit scripts (CVE-2020-15778.py and CVE-2020-15778-Update.py) targeting CVE-2020-15778, a command injection vulnerability in OpenSSH's scp utility. Both scripts automate the exploitation process by generating a bash reverse shell payload, writing it to a file (shell.sh), and using scp to transfer it to the /tmp directory of the target system. The exploit then triggers execution of the payload via a crafted scp command, resulting in a reverse shell connection from the target to the attacker's machine (as specified by lhost and lport). The 'Update' version adds a host status check using nmap before attempting exploitation. The README provides usage instructions and example commands. The exploit requires valid SSH credentials (root access) and a netcat listener on the attacker's machine. The repository is operational and provides a working exploit for the specified vulnerability.Neko-chanQwQ · Disclosed Jul 15, 2021 · python · networkOperationalCVE-2020-15778This repository is a minimal Docker-based reproduction of CVE-2020-15778 (OpenSSH scp command injection via crafted remote path). It contains four files: a README with step-by-step exploitation instructions and two Dockerfiles that build a vulnerable lab environment. Structure/purpose: - server/Dockerfile: Builds an Ubuntu 20.04 container running openssh-server (pinned to 1:8.2p1-4ubuntu0.9), enables root password login, sets root password to "PASSWORD", adjusts PAM, exposes TCP/22, and runs sshd in the foreground. - client/Dockerfile: Builds an Ubuntu 20.04 container with openssh-client (same pinned version) and netcat, dropping into /bin/bash for interactive use. - README.md: Describes how to build/run both containers, obtain their internal Docker IPs, and exploit the vulnerability by embedding backtick-delimited shell commands in the scp destination path (e.g., root@<server_ip>:'`<cmd>`/tmp'). It provides example payloads including destructive deletion and a reverse shell using bash redirected to /dev/tcp and a netcat listener. Exploit capabilities: - Authenticated remote command execution on the scp server by injecting shell commands into the remote path argument. - Demonstrated post-exploitation actions: filesystem destruction (rm -rf /*) and interactive shell callback to the client (reverse shell). No standalone exploit script is included; exploitation is performed manually using the scp client inside the provided containerized environment, making this a proof-of-concept reproduction rather than a weaponized tool.yifanzhg · Disclosed Sep 27, 2023 · dockerfile · markdown · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
NetAppA700s Firmwareoperating_system
NetAppActiveiq Unified Managerapplication
NetAppHci Compute Nodeoperating_system
NetAppHci Management Nodeapplication
NetAppHci Storage Nodehardware
NetAppSolidfireapplication
NetAppSteelstore Cloud Integrated Storageapplication
OpenbsdOpensshapplication
VMwareFabric Operating Systemoperating_system
FAQ

Frequently asked questions

Is CVE-2020-15778 exploited in the wild?
As of Nov 1, 2026, Mallory has no reports of CVE-2020-15778 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2020-15778?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2020-15778, the earliest disclosed Jul 15, 2021.
Is there a patch for CVE-2020-15778?
Apply distribution-specific OpenSSH updates that explicitly address CVE-2020-15778. For Rocky Linux 8.6 under CIQ LTS, follow advisory ciqsa-2026_1742.
What products are affected by CVE-2020-15778?
Openbsd Openssh, NetApp A700s Firmware, NetApp Activeiq Unified Manager, VMware Fabric Operating System, NetApp Hci Compute Node, and 4 more.
How severe is CVE-2020-15778?
CVE-2020-15778 has a CVSS v3.1 score of 7.4 (High) and an EPSS score of 13.7% (97th percentile) as of Nov 1, 2026.
Mallory platform

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, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.