CVE & CISA-KEV Catalog

CVE-2023-6004

MEDIUM
4.8
CVSS v3
NVD

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.

How to fix

Remediation Available
libsshDebian
Fixed in:0.9.8-0+deb11u1CVE-2023-6004
Fixed in:0.10.6-0+deb12u1CVE-2023-6004
Fixed in:0.10.6-1CVE-2023-6004
Fixed in:0.10.6-1CVE-2023-6004
libsshRocky
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libsshRed Hat / RHEL
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-configRocky
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-configRed Hat / RHEL
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-debuginfoRocky
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-debuginfoRed Hat / RHEL
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-debugsourceRed Hat / RHEL
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-debugsourceRocky
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-develRed Hat / RHEL
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libssh-develRocky
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.9.6-14.el8RHSA-2024:3233
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
Fixed in:0:0.10.4-13.el9RHSA-2024:2504
libsshUbuntu
Fixed in:0.6.3-4.3ubuntu0.6+esm1USN-6592-2
Fixed in:0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3USN-6592-2
Fixed in:0.9.3-2ubuntu2.5USN-6592-1
Fixed in:0.9.6-2ubuntu0.22.04.3USN-6592-1
Fixed in:0.10.4-2ubuntu0.3USN-6592-1
Fixed in:0.10.5-3ubuntu1.2USN-6592-1
libssh-4Ubuntu
Fixed in:0.6.3-4.3ubuntu0.6+esm1USN-6592-2
Fixed in:0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3USN-6592-2
Fixed in:0.9.3-2ubuntu2.5USN-6592-1
Fixed in:0.9.6-2ubuntu0.22.04.3USN-6592-1
Fixed in:0.10.4-2ubuntu0.3USN-6592-1
Fixed in:0.10.5-3ubuntu1.2USN-6592-1
libssh-gcrypt-4Ubuntu
Fixed in:0.6.3-4.3ubuntu0.6+esm1USN-6592-2
Fixed in:0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3USN-6592-2

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Exploit Intelligence

0.45%probability of exploitation in 30 days
36thpercentile

Low risk: more likely to be exploited than 36% of all known CVEs.

References

Related Vulnerabilities

Other CWE-74 (Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2013-2251Critical9.8100%KEVFix
CVE-2023-22527Critical9.8100%KEV + RansomFix
CVE-2019-2725Critical9.8100%KEV + RansomFix
CVE-2022-46169Critical9.8100%KEVFix
CVE-2022-35914Critical9.8100%KEV-
CVE-2019-17558High7.599%KEVFix
Embed a live status badge for CVE-2023-6004
CVE-2023-6004 severity badge

Markdown

[![CVE-2023-6004](https://tridentstack.com/cve/badge/CVE-2023-6004.svg)](https://tridentstack.com/cve/CVE-2023-6004)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-6004"><img src="https://tridentstack.com/cve/badge/CVE-2023-6004.svg" alt="CVE-2023-6004"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-04.