Affected versions
Ubuntu20.04:LTS/libssh
- Affected versions
- <0.9.3-2ubuntu2.5
- Fixed version
- 0.9.3-2ubuntu2.5
Ubuntu22.04:LTS/libssh
- Affected versions
- <0.9.6-2ubuntu0.22.04.3
- Fixed version
- 0.9.6-2ubuntu0.22.04.3
UbuntuPro:16.04:LTS/libssh
- Affected versions
- <0.6.3-4.3ubuntu0.6+esm1
- Fixed version
- 0.6.3-4.3ubuntu0.6+esm1
UbuntuPro:18.04:LTS/libssh
- Affected versions
- <0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3
- Fixed version
- 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3
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.
Links
- https://ubuntu.com/security/CVE-2023-6004
- https://ubuntu.com/security/notices/USN-6592-1
- https://ubuntu.com/security/notices/USN-6592-2
- https://vin01.github.io/piptagole/ssh/security/openssh/libssh/remote-code-execution/2023/12/20/openssh-proxycommand-libssh-rce.html
- https://www.cve.org/CVERecord?id=CVE-2023-6004
- https://www.libssh.org/security/advisories/CVE-2023-6004.txt

