StackPatch is liveSee product

Back to CVE digest
CVE-2023-51385 · cross-distro fix matrix

CVE-2023-51385: In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host name has shell metacharacters, and this name is referenced by an expansion token in certain situations. For example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host

Affects 7 Linux releases across 7 (distro × package) combinations.

Fix per ecosystem

Each block below is a distro release where CVE-2023-51385 has a known fix. Run the listed command on that distro to remediate.

Debian bullseye

Source: Debian Security Tracker

  • openssh→ fixed in1:8.4p1-5+deb11u3urgency: not yet assigned
    sudo apt-get install --only-upgrade -y openssh

Debian bookworm

Source: Debian Security Tracker

  • openssh→ fixed in1:9.2p1-2+deb12u2urgency: not yet assigned
    sudo apt-get install --only-upgrade -y openssh

Debian trixie

Source: Debian Security Tracker

  • openssh→ fixed in1:9.6p1-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y openssh

Alpine v3.20

Source: Alpine secdb

  • openssh→ fixed in9.6_p1-r0
    apk update && apk add --upgrade openssh

Alpine v3.21

Source: Alpine secdb

  • openssh→ fixed in9.6_p1-r0
    apk update && apk add --upgrade openssh

Alpine edge

Source: Alpine secdb

  • openssh→ fixed in9.6_p1-r0
    apk update && apk add --upgrade openssh

Alpine v3.19

Source: Alpine secdb

  • openssh→ fixed in9.6_p1-r0
    apk update && apk add --upgrade openssh
Are YOU affected by CVE-2023-51385?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2023-51385dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. $99 lifetime, 50 founder seats, 30-day refund.

See StackPatch ($99 lifetime)