CVE-2023-6004

Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname

State
Published
Severity
4.8 Medium
Published
Jan 3, 2024
Updated
Nov 7, 2025
Reserved
Nov 7, 2023

Read the record on cve.org

Description

A flaw was found in libssh. By utilizing the ProxyCommand or ProxyJump feature, users can exploit unchecked hostname syntax on the client. This issue may allow an attacker to inject malicious code into the command of the features mentioned through the hostname parameter.

Scores

CVSSScoreVectorSource
3.14.8 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:Lredhat

Weaknesses

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Affected Products

ProductVersions
Red Hat Enterprise Linux 8Red Hat
  • 0:0.9.6-14.el8 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
  • 0:0.9.6-14.el8 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:0.10.4-13.el9 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:0.10.4-13.el9 and laterNot affected
Red Hat Enterprise Linux 7Red Hat

    References

    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.