Skip to content
VulniPulse
Medium4.8Vendor: LowRed Hat Linux

CVE-2023-6004: Red Hat proxycommand/proxyjump features allow injection of malicious code through hostname

This Red Hat advisory covers CVE-2023-6004 in Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 and Red Hat Enterprise Linux 7.

Open the Red Hat advisory

Key facts

Vendor rating
Medium, CVSS 4.8
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L · base score 4.8, scored by redhatAttack vector: local. Attack complexity: low. Privileges required: low. User interaction: required. Scope: unchanged. Confidentiality impact: low. Integrity impact: low. Availability impact: low.
Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
EPSS
0.45% chance of exploitation in the next 30 days (39th percentile). FIRST EPSS, .
CISA SSVC
Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
CISA KEV
Not listed (catalogue checked )
Fixed in
libssh-0:0.9.6-14.el8, libssh-0:0.10.4-13.el9, RHSA-2024:3233 and 1 more below
Source published
Source revised
Listed by VulniPulse
Record changed

Compiled by VulniPulse from the linked sources. How records are collected and checked.

Affected products & platforms

Red Hat LinuxRed Hat Enterprise Linux

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. 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 severity: Low — CVSS 4.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L).

Weakness: CWE-74. Affected Red Hat products: Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 7.

Will not fix / out of support: Red Hat Enterprise Linux 7. Red Hat fixing advisory: RHSA-2024:3233, RHSA-2024:2504.

Affected products named by the advisory: Red Hat package: libssh.

Text from the source record.

How to fix CVE-2023-6004

Upgrade to a fixed release named by Red Hat:

  • libssh-0:0.9.6-14.el8
  • libssh-0:0.10.4-13.el9
  • RHSA-2024:3233
  • RHSA-2024:2504

Vendor guidance

  • 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.

End-of-life dates for Red Hat Enterprise Linux

CVE-2023-6004 in other vendors' advisories

Compare every advisory for CVE-2023-6004

All Red Hat Linux advisories

Get an email when Red Hat RHEL & SELinux publishes the next one.

See Red Hat RHEL & SELinux's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.

Alert me about Red Hat RHEL & SELinux