CVE-2023-6004 Libssh: proxycommand/proxyjump features allow injection of malicious code through hostname
Attackers can inject malicious code via hostname parameters in libssh ProxyCommand or ProxyJump features, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-6004?
CVE-2023-6004 is a medium-severity command injection vulnerability in Fedoraproject Fedora, published on 3 Jan 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-74
Which versions are affected by CVE-2023-6004?
It affects 3 products.
Products include Fedoraproject Fedora, Libssh Libssh, Redhat Enterprise Linux.
How do I fix CVE-2023-6004?
Apply the vendor's patch.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-6004 being exploited?
There is no known exploitation of CVE-2023-6004 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-34942, BELL-CVE-2023-6004, DEBIAN-CVE-2023-6004, GHSA-f35j-mfvw-p857, OESA-2024-1123, UBUNTU-CVE-2023-6004.