ID CVE-2016-0778
Summary The (1) roaming_read and (2) roaming_write functions in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2, when certain proxy and forward options are enabled, do not properly maintain connection file descriptors, which allows remote servers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact by requesting many forwardings.
References
Vulnerable Configurations
  • Oracle Linux 7.0
    cpe:2.3:o:oracle:linux:7.0
  • Oracle Solaris 11.3
    cpe:2.3:o:oracle:solaris:11.3
  • OpenBSD OpenSSH 5.4
    cpe:2.3:a:openbsd:openssh:5.4
  • OpenBSD OpenSSH 5.4 Patch 1
    cpe:2.3:a:openbsd:openssh:5.4:p1
  • OpenBSD OpenSSH 5.5
    cpe:2.3:a:openbsd:openssh:5.5
  • OpenBSD OpenSSH 5.5 Patch 1
    cpe:2.3:a:openbsd:openssh:5.5:p1
  • OpenBSD OpenSSH 5.6
    cpe:2.3:a:openbsd:openssh:5.6
  • OpenBSD OpenSSH 5.6 Patch 1
    cpe:2.3:a:openbsd:openssh:5.6:p1
  • OpenBSD OpenSSH 5.7
    cpe:2.3:a:openbsd:openssh:5.7
  • OpenBSD OpenSSH 5.7 Patch 1
    cpe:2.3:a:openbsd:openssh:5.7:p1
  • OpenBSD OpenSSH 5.8
    cpe:2.3:a:openbsd:openssh:5.8
  • OpenBSD OpenSSH 5.8 Patch 1
    cpe:2.3:a:openbsd:openssh:5.8:p1
  • OpenBSD OpenSSH 5.9
    cpe:2.3:a:openbsd:openssh:5.9
  • OpenBSD OpenSSH 5.9 Patch 1
    cpe:2.3:a:openbsd:openssh:5.9:p1
  • OpenBSD OpenSSH 6.0
    cpe:2.3:a:openbsd:openssh:6.0
  • OpenBSD OpenSSH 6.0 Patch 1
    cpe:2.3:a:openbsd:openssh:6.0:p1
  • OpenBSD OpenSSH 6.1
    cpe:2.3:a:openbsd:openssh:6.1
  • OpenBSD OpenSSH 6.1 Patch 1
    cpe:2.3:a:openbsd:openssh:6.1:p1
  • OpenBSD OpenSSH 6.2
    cpe:2.3:a:openbsd:openssh:6.2
  • OpenBSD OpenSSH 6.2 Patch 1
    cpe:2.3:a:openbsd:openssh:6.2:p1
  • OpenBSD OpenSSH 6.2 Patch 2
    cpe:2.3:a:openbsd:openssh:6.2:p2
  • OpenBSD OpenSSH 6.3
    cpe:2.3:a:openbsd:openssh:6.3
  • OpenBSD OpenSSH 6.3 Patch 1
    cpe:2.3:a:openbsd:openssh:6.3:p1
  • OpenBSD OpenSSH 6.4
    cpe:2.3:a:openbsd:openssh:6.4
  • OpenBSD OpenSSH 6.4 Patch 1
    cpe:2.3:a:openbsd:openssh:6.4:p1
  • OpenBSD OpenSSH 6.5
    cpe:2.3:a:openbsd:openssh:6.5
  • OpenBSD OpenSSH 6.5 Patch 1
    cpe:2.3:a:openbsd:openssh:6.5:p1
  • OpenBSD OpenSSH 6.6
    cpe:2.3:a:openbsd:openssh:6.6
  • OpenBSD OpenSSH 6.6 Patch 1
    cpe:2.3:a:openbsd:openssh:6.6:p1
  • OpenBSD OpenSSH 6.7
    cpe:2.3:a:openbsd:openssh:6.7
  • OpenBSD OpenSSH 6.7 Patch 1
    cpe:2.3:a:openbsd:openssh:6.7:p1
  • OpenBSD OpenSSH 6.8
    cpe:2.3:a:openbsd:openssh:6.8
  • OpenBSD OpenSSH 6.8 Patch 1
    cpe:2.3:a:openbsd:openssh:6.8:p1
  • OpenBSD OpenSSH 6.9
    cpe:2.3:a:openbsd:openssh:6.9
  • OpenBSD OpenSSH 6.9 Patch 1
    cpe:2.3:a:openbsd:openssh:6.9:p1
  • OpenBSD OpenSSH 7.0
    cpe:2.3:a:openbsd:openssh:7.0
  • OpenBSD OpenSSH 7.0 Patch 1
    cpe:2.3:a:openbsd:openssh:7.0:p1
  • OpenBSD OpenSSH 7.1
    cpe:2.3:a:openbsd:openssh:7.1
  • OpenBSD OpenSSH 7.1 Patch 1
    cpe:2.3:a:openbsd:openssh:7.1:p1
  • Apple Mac OS X 10.9.1 (Mavericks)
    cpe:2.3:o:apple:mac_os_x:10.9.1
  • Apple Mac OS X 10.9.2
    cpe:2.3:o:apple:mac_os_x:10.9.2
  • Apple Mac OS X 10.9.3
    cpe:2.3:o:apple:mac_os_x:10.9.3
  • Apple Mac OS X 10.9.4
    cpe:2.3:o:apple:mac_os_x:10.9.4
  • Apple Mac OS X 10.9.5
    cpe:2.3:o:apple:mac_os_x:10.9.5
  • cpe:2.3:o:hp:virtual_customer_access_system:15.07
    cpe:2.3:o:hp:virtual_customer_access_system:15.07
  • cpe:2.3:a:sophos:unified_threat_management_software:9.353
    cpe:2.3:a:sophos:unified_threat_management_software:9.353
CVSS
Base: 4.6 (as of 18-10-2016 - 10:36)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK HIGH SINGLE_INSTANCE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
exploit-db via4
  • description OpenSSH 7.2 - Denial of Service. CVE-2016-6515. Dos exploit for Linux platform
    file exploits/linux/dos/40888.py
    id EDB-ID:40888
    last seen 2016-12-07
    modified 2016-12-07
    platform linux
    port
    published 2016-12-07
    reporter Exploit-DB
    source https://www.exploit-db.com/download/40888/
    title OpenSSH 7.2 - Denial of Service
    type dos
  • description OpenSSH 6.8 < 6.9 - 'PTY' Privilege Escalation. CVE-2015-6565. Local exploit for Linux platform
    file exploits/linux/local/41173.c
    id EDB-ID:41173
    last seen 2017-01-26
    modified 2017-01-26
    platform linux
    port
    published 2017-01-26
    reporter Exploit-DB
    source https://www.exploit-db.com/download/41173/
    title OpenSSH 6.8 < 6.9 - 'PTY' Privilege Escalation
    type local
  • description OpenSSH < 6.6 SFTP (x64) - Command Execution. Remote exploit for Linux_x86-64 platform
    id EDB-ID:45000
    last seen 2018-07-10
    modified 2014-10-08
    published 2014-10-08
    reporter Exploit-DB
    source https://www.exploit-db.com/download/45000/
    title OpenSSH < 6.6 SFTP (x64) - Command Execution
  • description OpenSSH < 6.6 SFTP - Command Execution. Remote exploit for Linux platform
    id EDB-ID:45001
    last seen 2018-07-10
    modified 2018-03-20
    published 2018-03-20
    reporter Exploit-DB
    source https://www.exploit-db.com/download/45001/
    title OpenSSH < 6.6 SFTP - Command Execution
  • description OpenSSH < 7.4 - agent Protocol Arbitrary Library Loading. CVE-2016-10009. Remote exploit for Linux platform
    file exploits/linux/remote/40963.txt
    id EDB-ID:40963
    last seen 2016-12-23
    modified 2016-12-23
    platform linux
    port 22
    published 2016-12-23
    reporter Exploit-DB
    source https://www.exploit-db.com/download/40963/
    title OpenSSH < 7.4 - agent Protocol Arbitrary Library Loading
    type remote
  • description OpenSSH 7.7 - Username Enumeration. CVE-2018-15473. Remote exploit for Linux platform
    file exploits/linux/remote/45233.py
    id EDB-ID:45233
    last seen 2018-08-21
    modified 2018-08-21
    platform linux
    port
    published 2018-08-21
    reporter Exploit-DB
    source https://www.exploit-db.com/download/45233/
    title OpenSSH 7.7 - Username Enumeration
    type remote
  • description OpenSSH 2.3 < 7.4 - Username Enumeration (PoC). Remote exploit for Linux platform
    id EDB-ID:45210
    last seen 2018-08-17
    modified 2018-08-16
    published 2018-08-16
    reporter Exploit-DB
    source https://www.exploit-db.com/download/45210/
    title OpenSSH 2.3 < 7.4 - Username Enumeration (PoC)
  • description OpenSSH < 7.4 - 'UsePrivilegeSeparation Disabled' Forwarded Unix Domain Sockets Privilege Escalation. CVE-2016-10010. Local exploit for Linux platform. Ta...
    file exploits/linux/local/40962.txt
    id EDB-ID:40962
    last seen 2016-12-23
    modified 2016-12-23
    platform linux
    port
    published 2016-12-23
    reporter Exploit-DB
    source https://www.exploit-db.com/download/40962/
    title OpenSSH < 7.4 - 'UsePrivilegeSeparation Disabled' Forwarded Unix Domain Sockets Privilege Escalation
    type local
nessus via4
  • NASL family MacOS X Local Security Checks
    NASL id MACOSX_10_11_4.NASL
    description The remote host is running a version of Mac OS X that is 10.11.x prior to 10.11.4. It is, therefore, affected by multiple vulnerabilities in the following components : - apache_mod_php - AppleRAID - AppleUSBNetworking - Bluetooth - Carbon - dyld - FontParser - HTTPProtocol - Intel Graphics Driver - IOFireWireFamily - IOGraphics - IOHIDFamily - IOUSBFamily - Kernel - libxml2 - Messages - NVIDIA Graphics Drivers - OpenSSH - OpenSSL - Python - QuickTime - Reminders - Ruby - Security - Tcl - TrueTypeScaler - Wi-Fi Note that successful exploitation of the most serious issues can result in arbitrary code execution.
    last seen 2019-02-21
    modified 2018-07-14
    plugin id 90096
    published 2016-03-22
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90096
    title Mac OS X 10.11.x < 10.11.4 Multiple Vulnerabilities
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-4556904561.NASL
    description Sync with latest openssh package. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2016-10-18
    plugin id 88464
    published 2016-01-29
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=88464
    title Fedora 23 : gsi-openssh-7.1p2-1.fc23 (2016-4556904561)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-2E89EBA0C1.NASL
    description Sync with latest openssh package. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2016-10-18
    plugin id 89505
    published 2016-03-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=89505
    title Fedora 22 : gsi-openssh-6.9p1-7.fc22 (2016-2e89eba0c1)
  • NASL family Firewalls
    NASL id PFSENSE_SA-16_02.NASL
    description According to its self-reported version number, the remote pfSense install is prior to 2.3. It is, therefore, affected by multiple vulnerabilities.
    last seen 2019-02-21
    modified 2018-09-17
    plugin id 106499
    published 2018-01-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=106499
    title pfSense < 2.3 Multiple Vulnerabilities (SA-16_01 - SA-16_02)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2016-0118-1.NASL
    description This update for openssh fixes the following issues : - CVE-2016-0777: A malicious or compromised server could cause the OpenSSH client to expose part or all of the client's private key through the roaming feature (bsc#961642) - CVE-2016-0778: A malicious or compromised server could could trigger a buffer overflow in the OpenSSH client through the roaming feature (bsc#961645) This update disables the undocumented feature supported by the OpenSSH client and a commercial SSH server. Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-29
    plugin id 87961
    published 2016-01-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87961
    title SUSE SLED12 / SLES12 Security Update : openssh (SUSE-SU-2016:0118-1)
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2016-014-01.NASL
    description New openssh packages are available for Slackware 13.0, 13.1, 13.37, 14.0, 14.1, and -current to fix security issues.
    last seen 2019-02-21
    modified 2016-10-19
    plugin id 87929
    published 2016-01-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87929
    title Slackware 13.0 / 13.1 / 13.37 / 14.0 / 14.1 / current : openssh (SSA:2016-014-01)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20160114_OPENSSH_ON_SL7_X.NASL
    description An information leak flaw was found in the way the OpenSSH client roaming feature was implemented. A malicious server could potentially use this flaw to leak portions of memory (possibly including private SSH keys) of a successfully authenticated OpenSSH client. (CVE-2016-0777) A buffer overflow flaw was found in the way the OpenSSH client roaming feature was implemented. A malicious server could potentially use this flaw to execute arbitrary code on a successfully authenticated OpenSSH client if that client used certain non-default configuration options. (CVE-2016-0778) After installing this update, the OpenSSH server daemon (sshd) will be restarted automatically.
    last seen 2019-02-21
    modified 2018-12-28
    plugin id 87938
    published 2016-01-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87938
    title Scientific Linux Security Update : openssh on SL7.x x86_64
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2016-0119-1.NASL
    description This update for openssh fixes the following issues : - CVE-2016-0777: A malicious or compromised server could cause the OpenSSH client to expose part or all of the client's private key through the roaming feature (bsc#961642) - CVE-2016-0778: A malicious or compromised server could could trigger a buffer overflow in the OpenSSH client through the roaming feature (bsc#961645) This update disables the undocumented feature supported by the OpenSSH client and a commercial SSH server. Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-29
    plugin id 87962
    published 2016-01-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87962
    title SUSE SLED11 / SLES11 Security Update : openssh (SUSE-SU-2016:0119-1)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-38.NASL
    description This update for openssh fixes the following issues : - CVE-2016-0777: A malicious or compromised server could cause the OpenSSH client to expose part or all of the client's private key through the roaming feature (bsc#961642) - CVE-2016-0778: A malicious or compromised server could could trigger a buffer overflow in the OpenSSH client through the roaming feature (bsc#961645) This update disables the undocumented feature supported by the OpenSSH client and a commercial SSH server. This update was imported from the SUSE:SLE-12:Update update project.
    last seen 2019-02-21
    modified 2016-10-13
    plugin id 88128
    published 2016-01-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=88128
    title openSUSE Security Update : openssh (openSUSE-2016-38)
  • NASL family MacOS X Local Security Checks
    NASL id MACOSX_SECUPD2016-002.NASL
    description The remote host is running a version of Mac OS X that is 10.9.5 or 10.10.5 and is missing Security Update 2016-002. It is, therefore, affected by multiple vulnerabilities in the following components : - apache_mod_php - Kernel - libxml2 - OpenSSH - Python - Tcl Note that successful exploitation of the most serious issues can result in arbitrary code execution.
    last seen 2019-02-21
    modified 2018-07-14
    plugin id 90097
    published 2016-03-22
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90097
    title Mac OS X 10.9.5 / 10.10.5 Multiple Vulnerabilities (Security Update 2016-002)
  • NASL family Debian Local Securit