Cloudanix VulnDB

CVE-2020-29652

High · 7.5

CVSS

7.5

EPSS

3.2%

Published

Dec 17, 2020

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A programming mistake in a widely used secure remote-access library lets outsiders remotely shut down login services without any credentials.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Nil pointer dereference in golang.org/x/crypto/ssh SSH message processing causes the server process to crash when handling certain unauthenticated network inputs.

Why it matters to the business

Remote attackers can repeatedly terminate SSH services, resulting in loss of remote administration capability, operational downtime, and the need for manual restarts across affected systems.

How an attack unfolds

An attacker establishes a TCP connection to an exposed SSH port and transmits crafted protocol messages that reach the vulnerable nil dereference path inside the library's handshake or channel handling code, causing an immediate process crash without authentication.

How to fix it

Upgrade the golang.org/x/crypto dependency to a version containing the fix for the nil pointer dereference in SSH handling; rebuild and redeploy all affected binaries; restart services after the update.

How to confirm the fix worked

Confirm the updated library version is in use via go list or dependency manifests; attempt controlled reproduction of the crash condition in a test environment to verify the defect is no longer present.

Typical attack path

  1. Scan for or directly connect to TCP port 22 on target hosts
  2. Send malformed or unexpected SSH protocol packets before authentication
  3. Trigger nil pointer dereference in crypto/ssh code path
  4. Observe server process termination and service unavailability

How to detect it

Review SSH daemon and system logs for Go runtime panic messages; monitor for unexpected process terminations or restarts of SSH servers; correlate with network traffic showing early-stage SSH connections that do not complete handshakes.

  • runtime error: invalid memory address or nil pointer dereference
  • golang.org/x/crypto/ssh
  • ssh.(*handshakeTransport).readPacket

What your security team should do

  • Immediately audit and update all Go applications using golang.org/x/crypto/ssh
  • Prioritize patching of internet-facing SSH servers
  • Enable process monitoring and automatic restart for SSH daemons
  • Restrict SSH exposure through network controls until patches are applied

The record

A nil pointer dereference in the golang.org/x/crypto/ssh component through v0.0.0-20201203163018-be400aefbc4c for Go allows remote attackers to cause a denial of service against SSH servers.

Affected packages

Ecosystem Package Introduced Fixed
Go golang.org/x/crypto 0 0.0.0-20201216223049-8b5274cf687f
AlmaLinux:8 cockpit-podman 0 29-2.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 conmon 0 2:2.0.26-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 containernetworking-plugins 0 0.9.1-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 crit 0 3.15-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 criu 0 3.15-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 fuse-overlayfs 0 1.4.0-2.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 libslirp 0 4.3.1-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 libslirp-devel 0 4.3.1-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 python3-criu 0 3.15-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 slirp4netns 0 1.1.8-1.module_el8.6.0+2876+9ed4eae2
AlmaLinux:8 udica 0 0.2.4-1.module_el8.6.0+2876+9ed4eae2
Chainguard k3d 0 5.6.0-r11
Chainguard k3d-proxy 0 5.6.0-r11
Chainguard k3d-tools 0 5.6.0-r11
Debian:11 golang-go.crypto 0 1:0.0~git20201221.eec23a3-1
Debian:12 golang-go.crypto 0 1:0.0~git20201221.eec23a3-1
Debian:13 golang-go.crypto 0 1:0.0~git20201221.eec23a3-1
Red Hat:enterprise_linux:8::appstream buildah 0 0:1.19.7-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream buildah-debuginfo 0 0:1.19.7-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream buildah-debugsource 0 0:1.19.7-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream buildah-tests 0 0:1.19.7-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream buildah-tests-debuginfo 0 0:1.19.7-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream cockpit-podman 0 0:29-2.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream conmon 0 2:2.0.26-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream conmon-debuginfo 0 2:2.0.26-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream conmon-debugsource 0 2:2.0.26-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream container-selinux 0 2:2.158.0-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream containernetworking-plugins 0 0:0.9.1-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream containernetworking-plugins-debuginfo 0 0:0.9.1-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream containernetworking-plugins-debugsource 0 0:0.9.1-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream containers-common 0 1:1.2.2-8.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream crit 0 0:3.15-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream criu 0 0:3.15-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream criu-debuginfo 0 0:3.15-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream criu-debugsource 0 0:3.15-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream crun 0 0:0.18-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream crun-debuginfo 0 0:0.18-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream crun-debugsource 0 0:0.18-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream fuse-overlayfs 0 0:1.4.0-2.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream fuse-overlayfs-debuginfo 0 0:1.4.0-2.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream fuse-overlayfs-debugsource 0 0:1.4.0-2.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream libslirp 0 0:4.3.1-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream libslirp-debuginfo 0 0:4.3.1-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream libslirp-debugsource 0 0:4.3.1-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream libslirp-devel 0 0:4.3.1-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream oci-seccomp-bpf-hook 0 0:1.2.0-2.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream oci-seccomp-bpf-hook-debuginfo 0 0:1.2.0-2.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream oci-seccomp-bpf-hook-debugsource 0 0:1.2.0-2.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-catatonit 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-catatonit-debuginfo 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-debuginfo 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-debugsource 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-docker 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-plugins 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-plugins-debuginfo 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-remote 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-remote-debuginfo 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream podman-tests 0 0:3.0.1-6.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream python3-criu 0 0:3.15-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream runc 0 0:1.0.0-70.rc92.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream runc-debuginfo 0 0:1.0.0-70.rc92.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream runc-debugsource 0 0:1.0.0-70.rc92.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream skopeo 0 1:1.2.2-8.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream skopeo-debuginfo 0 1:1.2.2-8.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream skopeo-debugsource 0 1:1.2.2-8.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream skopeo-tests 0 1:1.2.2-8.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream slirp4netns 0 0:1.1.8-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream slirp4netns-debuginfo 0 0:1.1.8-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream slirp4netns-debugsource 0 0:1.1.8-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream toolbox 0 0:0.0.8-1.module+el8.4.0+10607+f4da7515
Red Hat:enterprise_linux:8::appstream udica 0 0:0.2.4-1.module+el8.4.0+10607+f4da7515
Rocky Linux:8 buildah 0 0:1.19.7-1.module+el8.4.0+558+7340b765
Rocky Linux:8 cockpit-podman 0 0:29-2.module+el8.7.0+1076+9b1c11c1
Rocky Linux:8 conmon 0 2:2.0.26-1.module+el8.4.0+558+7340b765
Rocky Linux:8 container-selinux 0 2:2.158.0-1.module+el8.4.0+558+7340b765
Rocky Linux:8 containernetworking-plugins 0 0:0.9.1-1.module+el8.7.0+1076+9b1c11c1
Rocky Linux:8 criu 0 0:3.15-1.module+el8.7.0+1076+9b1c11c1
Rocky Linux:8 fuse-overlayfs 0 0:1.4.0-2.module+el8.7.0+1076+9b1c11c1
Rocky Linux:8 libslirp 0 0:4.3.1-1.module+el8.7.0+1076+9b1c11c1
Rocky Linux:8 oci-seccomp-bpf-hook 0 0:1.2.0-2.module+el8.4.0+556+40122d08
Rocky Linux:8 podman 0 0:3.0.1-6.module+el8.4.0+558+7340b765
Rocky Linux:8 skopeo 0 1:1.2.2-8.module+el8.5.0+661+c0df01f6
Rocky Linux:8 slirp4netns 0 0:1.1.8-1.module+el8.7.0+1076+9b1c11c1
Rocky Linux:8 toolbox 0 0:0.0.8-1.module+el8.4.0+556+40122d08
Rocky Linux:8 udica 0 0:0.2.4-1.module+el8.7.0+1076+9b1c11c1
Ubuntu:20.04:LTS golang-go.crypto 0 No fix
Ubuntu:20.04:LTS kubernetes 0 No fix
Ubuntu:22.04:LTS golang-go.crypto 0 1:0.0~git20201221.eec23a3-1
Ubuntu:22.04:LTS kubernetes 0 No fix
Ubuntu:24.04:LTS kubernetes 0 No fix
Ubuntu:24.10 kubernetes 0 No fix
Ubuntu:Pro:20.04:LTS golang-go.crypto 0 No fix
Wolfi k3d 0 5.6.0-r11
Wolfi k3d-proxy 0 5.6.0-r11
Wolfi k3d-tools 0 5.6.0-r11
openSUSE:Tumbleweed velero 0 1.7.1-1.1

Related vulnerabilities