CVE-2016-3115: CRLF Injection
Last updated 24 July 2024
Other sources
Missing sanitisation of untrusted input allows an authenticated user who is able to request X11 forwarding to inject commands to xauth(1).
Injection of xauth commands grants the ability to read arbitrary files under the authenticated user's privilege. Other xauth commands allow limited information leakage, file overwrite, port probing and generally expose xauth(1), which was not written with a hostile user in mind, as an attack surface.
xauth(1) is run under the user's privilege, so this vulnerability offers no additional access to unrestricted accounts, but could circumvent key or account restrictions such as sshdconfig ForceCommand, authorizedkeys command="..." or restricted shells.
External references:
http://www.openssh.com/txt/x11fwd.adv
CVE assignment:
http://seclists.org/oss-sec/2016/q1/593
— Red Hat
Multiple CRLF injection vulnerabilities in session.c in sshd in OpenSSH before 7.2p2 allow remote authenticated users to bypass intended shell-command restrictions via crafted X11 forwarding data, related to the (1) doauthenticated1 and (2) sessionx11req functions.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/opensshto a version that resolves this vulnerability.Fixed in 1:8.4p1-5+deb11u3Fixed in 1:9.2p1-2+deb12u3Fixed in 1:9.8p1-8 - Upgrade
Upgrade
redhat/opensshto a version that resolves this vulnerability.Fixed in 7.2 - Upgrade
Upgrade
OpenSSHto a version that resolves this vulnerability.Fixed in 7.2p2
Event History
Frequently Asked Questions
What is the severity of CVE-2016-3115?
The severity of CVE-2016-3115 is considered to be high due to its potential to allow unauthorized shell-command execution.
How do I fix CVE-2016-3115?
To fix CVE-2016-3115, update OpenSSH to versions 1:8.4p1-5+deb11u3, 1:9.2p1-2+deb12u3, or 1:9.8p1-8.
Which versions of OpenSSH are affected by CVE-2016-3115?
CVE-2016-3115 affects OpenSSH versions prior to 7.2p2.
Can CVE-2016-3115 be exploited by remote users?
Yes, CVE-2016-3115 can be exploited by remote authenticated users through crafted X11 forwarding data.
What functions are related to the vulnerabilities in CVE-2016-3115?
The functions related to the vulnerabilities in CVE-2016-3115 are do_authenticated1 and session_x11_req.