CVE-2016-3115: CRLF Injection

Published Mar 11, 2016
·
Updated

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

4 affected componentsFixes available
debian/openssh
1:8.4p1-5+deb11u31:9.2p1-2+deb12u31:9.8p1-8
OpenBSD OpenSSH<=7.2
Oracle VM Server=3.2
redhat/openssh<7.2
7.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:8.4p1-5+deb11u3Fixed in 1:9.2p1-2+deb12u3Fixed in 1:9.8p1-8
  2. Upgrade

    Upgrade redhat/openssh to a version that resolves this vulnerability.

    Fixed in 7.2
  3. Upgrade

    Upgrade OpenSSH to a version that resolves this vulnerability.

    Fixed in 7.2p2

Event History

Mar 11, 2016
Data Sourced
via Red Hat·09:11 AM
DescriptionSeverityAffected Software
Mar 22, 2016
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Sep 11, 2018
Data Sourced
via NVD·10:29 AM
DescriptionSeverityAffected Software
Updated
10:29 AM
Affected Software
Jun 17, 2026
Data Sourced
via NVD·12:44 AM
Weakness
Updated
via NVD·12:44 AM
SeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

Which versions of OpenSSH are affected by CVE-2016-3115?

CVE-2016-3115 affects OpenSSH versions prior to 7.2p2.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203