6.4
MEDIUM CVSS 3.1
CVE-2016-3115
OpenSSH SSHD CRLF Injection Vulnerability
Description

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) do_authenticated1 and (2) session_x11_req functions.

INFO

Published Date :

March 22, 2016, 10:59 a.m.

Last Modified :

June 17, 2026, 12:44 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2016-3115 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Openbsd openssh
1 Oracle vm_server
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 2.0 MEDIUM [email protected]
CVSS 3.0 MEDIUM [email protected]
CVSS 3.1 MEDIUM 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
This vulnerability can be remediated by updating the OpenSSH packages to the latest versions.
  • Update the OpenSSH packages to a non-vulnerable version.
  • Apply vendor-provided patches to resolve the vulnerability.
Public PoC/Exploit Available at Github

CVE-2016-3115 has a 20 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2016-3115.

URL Resource
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c.diff?r1=1.281&r2=1.282&f=h
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183101.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183122.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178838.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/179924.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/180491.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184264.html
http://packetstormsecurity.com/files/136234/OpenSSH-7.2p1-xauth-Command-Injection-Bypass.html
http://rhn.redhat.com/errata/RHSA-2016-0465.html
http://rhn.redhat.com/errata/RHSA-2016-0466.html
http://seclists.org/fulldisclosure/2016/Mar/46
http://seclists.org/fulldisclosure/2016/Mar/47
http://www.openssh.com/txt/x11fwd.adv Vendor Advisory
http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html Vendor Advisory
http://www.securityfocus.com/bid/84314
http://www.securitytracker.com/id/1035249
https://bto.bluecoat.com/security-advisory/sa121
https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-3115
https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html
https://security.gentoo.org/glsa/201612-18
https://www.exploit-db.com/exploits/39569/
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:14.openssh.asc
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c.diff?r1=1.281&r2=1.282&f=h
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183101.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183122.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178838.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/179924.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/180491.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184264.html
http://packetstormsecurity.com/files/136234/OpenSSH-7.2p1-xauth-Command-Injection-Bypass.html
http://rhn.redhat.com/errata/RHSA-2016-0465.html
http://rhn.redhat.com/errata/RHSA-2016-0466.html
http://seclists.org/fulldisclosure/2016/Mar/46
http://seclists.org/fulldisclosure/2016/Mar/47
http://www.openssh.com/txt/x11fwd.adv Vendor Advisory
http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html Vendor Advisory
http://www.securityfocus.com/bid/84314
http://www.securitytracker.com/id/1035249
https://bto.bluecoat.com/security-advisory/sa121
https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-3115
https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html
https://security.gentoo.org/glsa/201612-18
https://www.exploit-db.com/exploits/39569/
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:14.openssh.asc
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-3115 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2016-3115 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Network Scanner and CVE - Correlation

Python

Updated: 5 days, 22 hours ago
0 stars 0 fork 0 watcher
Born at : July 21, 2026, 7 a.m. This repo has been linked 2 different CVEs too.

OpenSSH-Scanner

Python

Updated: 4 weeks, 1 day ago
1 stars 0 fork 0 watcher
Born at : June 27, 2026, 11:11 a.m. This repo has been linked 22 different CVEs too.

Audits OpenSSH sshd_config for CVE-related issues, insecure settings, and hardening weaknesses, with optional auto-fix support.

Python

Updated: 3 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : April 8, 2026, 3:40 p.m. This repo has been linked 5 different CVEs too.

OpenClaw Skills Library 2,510 Production-Ready Skills for AI Agent Automation Give your OpenClaw agent the complete puzzle. Modular, observable, and safe automation workflows for Ubuntu Linux systems. Built for professionals who need reliability.

Updated: 5 months ago
2 stars 0 fork 0 watcher
Born at : Feb. 17, 2026, 5:05 p.m. This repo has been linked 602 different CVEs too.

None

Updated: 1 year, 2 months ago
0 stars 0 fork 0 watcher
Born at : May 25, 2025, 1:14 p.m. This repo has been linked 331 different CVEs too.

Host scanning tool with sample vulnerable host

Python

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : May 7, 2025, 7:17 p.m. This repo has been linked 3 different CVEs too.

None

Updated: 1 year, 3 months ago
0 stars 0 fork 0 watcher
Born at : April 22, 2025, 2:39 p.m. This repo has been linked 73 different CVEs too.

None

Updated: 1 year, 5 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 30, 2025, 9:01 a.m. This repo has been linked 173 different CVEs too.

None

Python

Updated: 1 year, 4 months ago
1 stars 0 fork 0 watcher
Born at : Oct. 3, 2024, 3:15 p.m. This repo has been linked 22 different CVEs too.

bulk scanning tool for 21 different CVE's for OpenSSH

Python

Updated: 1 year, 11 months ago
1 stars 0 fork 0 watcher
Born at : Aug. 25, 2024, 6:28 a.m. This repo has been linked 22 different CVEs too.

OpenSSH Vulnerabilities Scanner: Bulk Scanning Tool for 21 different OpenSSH CVEs.

Python

Updated: 1 year, 1 month ago
8 stars 5 fork 5 watcher
Born at : Aug. 24, 2024, 10:56 p.m. This repo has been linked 22 different CVEs too.

Bulk Scanning Tool for OpenSSH CVE-2024-6387, CVE-2024-6409, CVE-2006-5051, CVE-2008-4109, and 16 other CVEs.

Updated: 2 years ago
0 stars 0 fork 0 watcher
Born at : July 11, 2024, 11:56 a.m. This repo has been linked 22 different CVEs too.

Bulk Scanning Tool for OpenSSH CVE-2024-6387, CVE-2006-5051 , CVE-2008-4109 and others.

openssh security-audit security-tools ssh ssh-server

Python

Updated: 1 year, 2 months ago
34 stars 7 fork 7 watcher
Born at : July 1, 2024, 8:45 p.m. This repo has been linked 21 different CVEs too.

None

Updated: 3 years ago
0 stars 0 fork 0 watcher
Born at : June 30, 2023, 2:41 p.m. This repo has been linked 78 different CVEs too.

Easily scan for CVEs using nmap.

cve nmap portscanning shell shellscript automation

Shell

Updated: 1 year, 1 month ago
15 stars 3 fork 3 watcher
Born at : Jan. 13, 2022, 2:44 p.m. This repo has been linked 34 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-3115 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-3115 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'n/a', 'product': 'n/a', 'versions': [{'status': 'affected', 'version': 'n/a'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2016-3115', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-05-29T20:26:37.501191Z'}
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    May. 29, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
    Added CWE CWE-93
  • Status Change by [email protected]

    May. 06, 2026

    Action Type Old Value New Value
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c
    Added Reference http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c.diff?r1=1.281&r2=1.282&f=h
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183101.html
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183122.html
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178838.html
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-March/179924.html
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-March/180491.html
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184264.html
    Added Reference http://packetstormsecurity.com/files/136234/OpenSSH-7.2p1-xauth-Command-Injection-Bypass.html
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-0465.html
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-0466.html
    Added Reference http://seclists.org/fulldisclosure/2016/Mar/46
    Added Reference http://seclists.org/fulldisclosure/2016/Mar/47
    Added Reference http://www.openssh.com/txt/x11fwd.adv
    Added Reference http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
    Added Reference http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
    Added Reference http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
    Added Reference http://www.securityfocus.com/bid/84314
    Added Reference http://www.securitytracker.com/id/1035249
    Added Reference https://bto.bluecoat.com/security-advisory/sa121
    Added Reference https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-3115
    Added Reference https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html
    Added Reference https://security.gentoo.org/glsa/201612-18
    Added Reference https://www.exploit-db.com/exploits/39569/
    Added Reference https://www.freebsd.org/security/advisories/FreeBSD-SA-16:14.openssh.asc
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Sep. 11, 2018

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 05, 2018

    Action Type Old Value New Value
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-0465.html [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 01, 2017

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201612-18 [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 03, 2016

    Action Type Old Value New Value
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-0466.html [No Types Assigned]
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178838.html [No Types Assigned]
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-March/180491.html [No Types Assigned]
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183122.html [No Types Assigned]
    Added Reference http://seclists.org/fulldisclosure/2016/Mar/46 [No Types Assigned]
    Added Reference http://seclists.org/fulldisclosure/2016/Mar/47 [No Types Assigned]
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183101.html [No Types Assigned]
    Added Reference https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-3115 [No Types Assigned]
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-March/179924.html [No Types Assigned]
    Added Reference https://www.exploit-db.com/exploits/39569/ [No Types Assigned]
    Added Reference https://www.freebsd.org/security/advisories/FreeBSD-SA-16:14.openssh.asc [No Types Assigned]
    Added Reference https://bto.bluecoat.com/security-advisory/sa121 [No Types Assigned]
    Added Reference http://packetstormsecurity.com/files/136234/OpenSSH-7.2p1-xauth-Command-Injection-Bypass.html [No Types Assigned]
    Added Reference http://www.securitytracker.com/id/1035249 [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 01, 2016

    Action Type Old Value New Value
    Added Reference http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184264.html [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 28, 2016

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/84314 [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 04, 2016

    Action Type Old Value New Value
    Added Reference http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
    Added Reference http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
  • Modified Analysis by [email protected]

    Sep. 12, 2016

    Action Type Old Value New Value
    Changed CPE Configuration Configuration 1 OR *cpe:2.3:a:openbsd:openssh:7.2:p1:*:*:*:*:*:* (and previous) Configuration 1 OR *cpe:2.3:a:openbsd:openssh:7.2:p1:*:*:*:*:*:* (and previous) Configuration 2 OR *cpe:2.3:o:oracle:vm_server:3.2:*:*:*:*:*:*:*
    Changed Reference Type http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html No Types Assigned http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html Vendor Advisory
  • CVE Modified by [email protected]

    Sep. 09, 2016

    Action Type Old Value New Value
    Added Reference http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
  • Modified Analysis by [email protected]

    Mar. 22, 2016

    Action Type Old Value New Value
    Added Evaluator Description <a href="https://cwe.mitre.org/data/definitions/93.html">CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')</a>
    Added CPE Configuration Configuration 1 OR *cpe:2.3:a:openbsd:openssh:7.2:p1:*:*:*:*:*:* (and previous)
    Added CVSS V2 (AV:N/AC:L/Au:S/C:P/I:P/A:N)
    Added CVSS V3 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
    Changed Reference Type http://www.openssh.com/txt/x11fwd.adv No Types Assigned http://www.openssh.com/txt/x11fwd.adv Advisory
    Added CWE NVD-CWE-Other
  • Initial Analysis by [email protected]

    Mar. 22, 2016

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.