cve.bz

CVE-2023-6004 Injection

4.8 mediumEPSS 0.4%Fix available

Medium (4.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-01-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-6004 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-6004?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-6004?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-6004 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:0.9.6-14.el8
Red Hat Enterprise Linux 90:0.10.4-13.el9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libssh0.9.8-0+deb11u1DSA-5591-1
Debian12libssh0.10.6-0+deb12u1DEBIAN-CVE-2023-6004 DSA-5591-1
Debian13, 14libssh0.10.6-1DEBIAN-CVE-2023-6004
Ubuntu20.04:LTSlibssh0.9.3-2ubuntu2.5UBUNTU-CVE-2023-6004 USN-6592-1
Ubuntu22.04:LTSlibssh0.9.6-2ubuntu0.22.04.3UBUNTU-CVE-2023-6004 USN-6592-1
UbuntuPro:16.04:LTSlibssh0.6.3-4.3ubuntu0.6+esm1UBUNTU-CVE-2023-6004 USN-6592-2
UbuntuPro:18.04:LTSlibssh0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3UBUNTU-CVE-2023-6004 USN-6592-2
Red Hatenterprise_linux:8::appstreamlibssh-devel, libssh-debuginfo, libssh-debugsource0:0.9.6-14.el8RHSA-2024:3233
Red Hatenterprise_linux:8::baseoslibssh, libssh-config, libssh-debuginfo and 1 more0:0.9.6-14.el8RHSA-2024:3233
Red Hatenterprise_linux:9::appstreamlibssh-devel, libssh-debuginfo, libssh-debugsource0:0.10.4-13.el9RHSA-2024:2504
Red Hatenterprise_linux:9::baseoslibssh, libssh-config, libssh-debuginfo and 1 more0:0.10.4-13.el9RHSA-2024:2504
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morelibssh0.9.8-150200.13.3.1SUSE-SU-2024:0525-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 8 morelibssh0.9.8-150400.3.3.1SUSE-SU-2024:0140-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libssh0.9.8-3.12.2SUSE-SU-2024:0539-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4libssh0.9.8-150400.3.3.1SUSE-SU-2024:0140-1
openSUSETumbleweedlibssh0.10.6-1.1openSUSE-SU-2024:13638-1
AlmaLinux8libssh, libssh-devel, libssh-config0.9.6-14.el8ALSA-2024:3233
AlmaLinux9libssh, libssh-devel, libssh-config0.10.4-13.el9ALSA-2024:2504
Rocky Linux8libssh0:0.9.6-14.el8RLSA-2024:3233
Rocky Linux9libssh0:0.10.4-13.el9RLSA-2024:2504
Alpinev3.19, v3.20, v3.21 and 3 morelibssh0.10.6-r0ALPINE-CVE-2023-6004
Azure Linux3libssh0.10.6-1AZL-34942
Alpaquita23, streamlibssh0.10.6-r0BELL-CVE-2023-6004

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Despite the potential severity of this issue, the requirement for user interaction to exploit the vulnerability has led to a low severity rating. As a precautionary measure, users are advised to sanitize hostname inputs as a mitigation strategy.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libssh-0:0.9.6-14.el8Fixed 2024-05-22RHSA-2024:3233
Red Hat Enterprise Linux 9libssh-0:0.10.4-13.el9Fixed 2024-04-30RHSA-2024:2504
Red Hat Enterprise Linux 7libsshOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-6004.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON