CVE-2024-39223
gost vulnerability analysis and mitigation

Overview

An authentication bypass vulnerability exists in the SSH service of gost v2.11.5, identified as CVE-2024-39223. The vulnerability was discovered in July 2024 and allows attackers to intercept communications by exploiting the HostKeyCallback function set to ssh.InsecureIgnoreHostKey. This affects the SSH service implementation in gost version 2.11.5 and earlier versions (GitHub Issue).

Technical details

The vulnerability exists in the SSH ForwardTransporter handshake process, specifically in the file github.com/ginuerzh/gost/ssh.go at line 229. The issue stems from a critical configuration that bypasses host key verification by setting HostKeyCallback to ssh.InsecureIgnoreHostKey(). This configuration effectively disables host key verification during SSH connection establishment, allowing any server's host key to be accepted without validation (GitHub Code). The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability significantly weakens the security of SSH connections managed by gost. When exploited, it allows attackers to perform Man-in-the-Middle (MitM) attacks by intercepting SSH connections and presenting forged host keys. This can lead to unauthorized access to systems, theft of sensitive data, and execution of malicious actions on behalf of legitimate users (GitHub Issue).

Exploitability

The vulnerability is highly exploitable as it requires no special privileges or user interaction. An attacker can exploit this vulnerability by intercepting SSH connections between the client and server, taking advantage of the disabled host key verification to perform MitM attacks (GitHub POC).

Mitigation and workarounds

The recommended mitigation is to implement a secure host key verification mechanism. This can be achieved by using a known host key or implementing a system for storing and comparing fingerprints against a list of trusted keys. The HostKeyCallback should be updated to use a callback function that properly verifies host keys against a list of known or trusted keys (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related gost vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-39223CRITICAL9.8
  • gost logogost
  • github.com/ginuerzh/gost
NoYesJul 03, 2024
CVE-2023-32691MEDIUM5.9
  • gost logogost
  • github.com/ginuerzh/gost
NoYesMay 30, 2023

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management