CVE-2023-51385 is an OS command-injection vulnerability in OpenSSH ssh versions before 9.6. It can occur when a user name or host name containing shell metacharacters is referenced by an expansion token in certain configurations. An untrusted Git repository can supply such a crafted user name or host name through a submodule definition, potentially causing shell command execution.
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.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (4 hidden).
This repository is a small exploit/PoC for CVE-2023-51385 centered on malicious Git submodule URL handling. The structure is minimal: a README explaining setup and trigger conditions, a .gitmodules file containing the malicious submodule URL, and a bash payload script (shell.sh). The exploit abuses command substitution embedded in the submodule URL field, e.g. ssh://`bash shell.sh`foo.ichunqiu.com/bar, so that when a victim performs a recursive clone/submodule operation in a vulnerable environment, arbitrary local commands may execute. The README documents both a safe proof-of-execution payload (creating cve.txt) and the actual repository payload. It states that exploitation requires a vulnerable OpenSSH version earlier than 9.6p1 and an SSH client configuration with a ProxyCommand rule matching the crafted host pattern. Operationally, this is more than a pure detection script because the included shell.sh launches a real reverse shell using bash TCP redirection to 64.90.7.213:8889. Primary capability: arbitrary command execution on the client machine processing the malicious repository/submodule. Secondary capability in the included payload: interactive remote shell access for the attacker. This is best classified as a supply-chain style attack vector delivered through a malicious repository/submodule reference, with a network callback payload.
This repository provides a proof-of-concept (PoC) exploit for CVE-2023-51385, a command injection vulnerability in OpenSSH's ProxyCommand option. The exploit demonstrates how an attacker with access to a user's SSH configuration file (~/.ssh/config) or the ability to influence the ProxyCommand option can execute arbitrary shell commands. The provided payload creates a file (/tmp/pwned.txt) with a custom message, proving code execution. The exploit is documented in 'exploit.md' and is intended for educational and authorized penetration testing purposes. The repository contains no executable scripts, but provides clear step-by-step instructions for reproducing the vulnerability on affected OpenSSH versions (prior to 9.8, specifically <9.6). The main attack vector is local, requiring the attacker to modify the user's SSH configuration or command-line arguments.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical vulnerability affecting the net-misc/openssh package in Google Container-Optimized OS (COS), remediated by updating to version 18137.0.0 or later.
A vulnerability affecting the libssh package included in CIQ LTS 8.6 / Rocky Linux 8.6, addressed by CIQ advisory ciqsa-2026_0087.
OpenSSH command-injection issue (pre-9.6) where shell metacharacters in a username/hostname can lead to OS command injection in certain expansion-token scenarios; Aruba upgraded OpenSSH to mitigate.
Unknown
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.