Skip to content

OpenSSH 10.3 Patches Shell Metacharacter Injection CVE-2026-35386 in Non-Default scp Configurations

OpenSSH 10.3, released April 26, addresses CVE-2026-35386, a shell metacharacter injection flaw in the scp client that can result in unintended remote command execution when transferring files from attacker-controlled servers. While exploitation requires non-default configuration, scp is still widely used in automated backup and deployment pipelines and should be updated promptly.

Article network-security

The OpenSSH project has released version 10.3 with a fix for CVE-2026-35386, a shell metacharacter injection vulnerability in the scp (Secure Copy Protocol) client. The flaw allows a malicious or compromised remote server to inject arbitrary shell commands that are executed by the connecting scp client under the local user’s privileges.

While CVE-2026-35386 carries a CVSS v3.1 base score of 3.6 β€” placing it in the LOW severity range due to its dependency on an attacker-controlled remote server and non-default configuration β€” its impact on automated infrastructure pipelines warrants prompt attention.

The Vulnerability

OpenSSH’s scp client, when operating in legacy SCP protocol mode (as opposed to the newer SFTP subsystem), constructs a shell command string on the server side to enumerate and transfer files. If a remote server is compromised or malicious, it can return filenames containing shell metacharacters (such as backtick sequences, $() command substitution, semicolons, or pipe characters) that are interpreted by the client-side shell when the transfer output is processed.

The CVSS score’s LOW rating reflects two limiting constraints: the attacker must control or compromise the remote server to which the client is connecting, and the client must be configured to use legacy SCP mode. However, two conditions make the practical risk higher than the base score suggests:

  1. Legacy SCP mode remains default in many deployments. While OpenSSH has progressively encouraged migration to SFTP, the -s flag (SFTP mode) is not the default for scp invocations. Automated scripts inherited from older infrastructure frequently omit this flag.

  2. Supply chain attack scenarios. Automated CI/CD pipelines and backup systems that scp artefacts from build servers represent a supply chain vector. If the build server is compromised (as seen in the TeamPCP supply chain campaign documented earlier this month), the metacharacter injection path enables direct code execution on the engineering or production host that pulls the artefact.

Affected Versions

CVE-2026-35386 affects OpenSSH versions 8.9 through 10.2 (inclusive). OpenSSH 10.3 contains the fix. Note that this is a distinct vulnerability from CVE-2026-35385 (the scp setuid privilege preservation flaw patched in OpenSSH 10.2 and already covered by CipherWatch).

Version RangeStatus
< 8.9Not affected (legacy scp path differs)
8.9 – 10.2Vulnerable
10.3Fixed

Distribution Status

Most major distributions ship OpenSSH from the 8.9–10.2 range; distribution security teams are expected to issue backported patches for stable releases within the coming days. Operators should check:

  • RHEL/AlmaLinux/Rocky: openssh-8.7p1 on RHEL 9 β€” watch for RHSA advisory
  • Ubuntu 22.04/24.04: 1:8.9p1 and 1:9.6p1 respectively β€” Ubuntu Security Notice pending
  • Debian 12: 1:9.2p1 β€” DSA expected from the Debian Security Team
  • Upgrade to OpenSSH 10.3 on all systems where it is available; for distribution-managed packages, apply the distribution backport once issued.
  • Migrate automated pipelines to SFTP mode β€” add the -s or --sftp flag to all scp invocations in CI/CD scripts, cron jobs, and backup automation; or replace scp usage with rsync --rsh=ssh or native SFTP tooling.
  • Audit scp usage in automation β€” grep deployment scripts, Jenkinsfiles, GitLab CI configurations, and cron jobs for scp invocations that target servers not under your direct control.
  • Review server trust boundaries β€” scp from untrusted or externally-hosted servers should be treated as a high-risk operation; validate server host keys and consider prohibiting scp in favour of checksum-verified file downloads where possible.

Share this article

Related Intelligence

🌐 Network

Palo Alto Networks Patches PAN-OS Command Injection CVE-2026-0273 Across All Active Branches

Palo Alto Networks has patched CVE-2026-0273, a command injection vulnerability in the PAN-OS web management interface that allows authenticated administrators to execute arbitrary OS commands on the firewall. The vulnerability affects PAN-OS versions 10.1 through 11.2 and all active GlobalProtect gateway configurations. Updates are available across all supported branches.

#palo-alto +8
🌐 Network

SonicWall CVE-2026-0204 β€” Authentication Bypass in SSLVPN Allows Unauthenticated Network Access

SonicWall has disclosed CVE-2026-0204, an authentication bypass vulnerability in the SonicWall SSLVPN product that allows a remote attacker to bypass VPN authentication and gain access to the protected network without valid credentials. SonicWall SSLVPN appliances are widely deployed as enterprise and SMB VPN concentrators. Patch available β€” update immediately.

#sonicwall +7
🌐 Network

ProFTPD CVE-2026-42167 β€” Authentication Bypass Leading to Remote Code Execution

A vulnerability in ProFTPD β€” one of the most widely deployed open-source FTP server implementations β€” allows a remote unauthenticated attacker to bypass authentication controls and achieve code execution on the server. CVE-2026-42167 affects ProFTPD versions prior to 1.3.9a. FTP servers are frequently forgotten in patch management programmes; administrators should verify ProFTPD version and apply the update.

#proftpd +7