CVE-2024-39223
Critical · 9.8CVSS
9.8
EPSS
0.7%
Published
Jul 3, 2024
CISA due date
—
Cloudanix analysis
A flaw in this networking tool can let attackers secretly listen in on supposedly secure connections because it skips important identity checks.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Network Service
- Class
- Authentication Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits bypassing SSH host key verification by setting HostKeyCallback to ssh.InsecureIgnoreHostKey, enabling man-in-the-middle interception of SSH sessions.
Why it matters to the business
Organizations face risk of unauthorized interception of encrypted communications, potential data exposure, and compliance issues, though low EPSS and absence from KEV indicate limited observed exploitation urgency.
How an attack unfolds
An attacker supplies or modifies code using the vulnerable gost SSH implementation to assign ssh.InsecureIgnoreHostKey as the callback, connects to a malicious server impersonating a legitimate host, and intercepts all session traffic without detection.
How to fix it
Upgrade gost to a version that enforces proper host key verification and remove any usage of ssh.InsecureIgnoreHostKey; enforce strict host key checking policies across all SSH clients and services.
How to confirm the fix worked
Audit source code and binaries for references to InsecureIgnoreHostKey; perform connection tests using mismatched host keys to confirm verification enforcement.
Typical attack path
- Locate deployments of gost v2.11.5 exposing SSH services
- Prepare a rogue SSH server configured to mimic the target identity
- Force or inject the InsecureIgnoreHostKey callback into the client or service configuration
- Initiate SSH connections to capture and decrypt intercepted communications
How to detect it
Search application source, binaries, and configuration files for the InsecureIgnoreHostKey string; review SSH-related logs for sessions that complete without host key validation events.
- ssh.InsecureIgnoreHostKey
- InsecureIgnoreHostKey
What your security team should do
- Scan codebases and running instances for gost v2.11.5 and the insecure callback pattern
- Replace all instances with a patched release that validates host keys
- Add runtime monitoring for SSH sessions that skip host verification
- Update internal secure coding standards to prohibit insecure host key callbacks
The record
An authentication bypass in the SSH service of gost v2.11.5 allows attackers to intercept communications via setting the HostKeyCallback function to ssh.InsecureIgnoreHostKey
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/ginuerzh/gost | 0 | No fix |
| SUSE:Linux Enterprise Module for Package Hub 15 SP5 | govulncheck-vulndb | 0 | 0.0.20241030T212825-150000.1.9.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | govulncheck-vulndb | 0 | 0.0.20241030T212825-150000.1.9.1 |
| SUSE:Package Hub 12 | govulncheck-vulndb | 0 | 0.0.20241104T154416-5.1 |
| Ubuntu:20.04:LTS | gost | 0 | No fix |
| Ubuntu:22.04:LTS | gost | 0 | No fix |
| Ubuntu:24.04:LTS | gost | 0 | No fix |
| Ubuntu:24.10 | gost | 0 | No fix |
| Ubuntu:25.04 | gost | 0 | No fix |
| Ubuntu:25.10 | gost | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | gost | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | gost | 0 | No fix |
| openSUSE:Leap 15.5 | govulncheck-vulndb | 0 | 0.0.20241030T212825-150000.1.9.1 |
| openSUSE:Leap 15.6 | govulncheck-vulndb | 0 | 0.0.20241030T212825-150000.1.9.1 |
| openSUSE:Tumbleweed | govulncheck-vulndb | 0 | 0.0.20241030T212825-1.1 |
Related vulnerabilities
- CVE-2024-10975 Hashicorp Nomad Incorrect Authorization vulnerability Also affects govulncheck-vulndb
- CVE-2024-10086 A vulnerability was identified in Consul and Consul Enterprise such that the server… Also affects govulncheck-vulndb
- CVE-2024-10006 A vulnerability was identified in Consul and Consul Enterprise (“Consul”) such that using… Also affects govulncheck-vulndb
- CVE-2024-10005 A vulnerability was identified in Consul and Consul Enterprise (“Consul”) such that using… Also affects govulncheck-vulndb
- CVE-2024-0132 NVIDIA Container Toolkit contains a Time-of-check Time-of-Use (TOCTOU) vulnerability Also affects govulncheck-vulndb
- CVE-2024-10452 Grafana org admin can delete pending invites in different org Also affects govulncheck-vulndb
- CVE-2024-9264 Grafana Command Injection And Local File Inclusion Via Sql Expressions Also affects govulncheck-vulndb
- CVE-2024-9486 VM images built with Image Builder and Proxmox provider use default credentials in… Also affects govulncheck-vulndb