cve.bz

CVE-2016-0777

6.5 mediumEPSS 63%

Medium (6.5). EPSS 63% estimated probability of exploitation activity in the next 30 days.

On this page
The resend_bytes function in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2 allows remote servers to obtain sensitive information from process memory by requesting transmission of an entire buffer, as demonstrated by reading a private key.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
63% (unchanged from 63% a week ago; 63% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-0777 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-0777?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-0777?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-0777 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sophos:unified_threat_management_software9.318
sophos:unified_threat_management_software9.353
oracle:linux7
oracle:solaris11.3
openbsd:openssh5.0
openbsd:openssh5.0:p1
openbsd:openssh5.1
openbsd:openssh5.1:p1
openbsd:openssh5.2
openbsd:openssh5.2:p1
openbsd:openssh5.3
openbsd:openssh5.3:p1
openbsd:openssh5.4
openbsd:openssh5.4:p1
openbsd:openssh5.5
openbsd:openssh5.5:p1
openbsd:openssh5.6
openbsd:openssh5.6:p1
openbsd:openssh5.7
openbsd:openssh5.7:p1
openbsd:openssh5.8
openbsd:openssh5.8:p1
openbsd:openssh5.9
openbsd:openssh5.9:p1
openbsd:openssh6.0
openbsd:openssh6.0:p1
openbsd:openssh6.1
openbsd:openssh6.1:p1
openbsd:openssh6.2
openbsd:openssh6.2:p1
openbsd:openssh6.2:p2
openbsd:openssh6.3
openbsd:openssh6.3:p1
openbsd:openssh6.4
openbsd:openssh6.4:p1
openbsd:openssh6.5
openbsd:openssh6.5:p1
openbsd:openssh6.6
openbsd:openssh6.6:p1
openbsd:openssh6.7
openbsd:openssh6.7:p1
openbsd:openssh6.8
openbsd:openssh6.8:p1
openbsd:openssh6.9
openbsd:openssh6.9:p1
openbsd:openssh7.0
openbsd:openssh7.0:p1
openbsd:openssh7.1
openbsd:openssh7.1:p1
hp:remote_device_access_virtual_customer_access_systemthrough 15.07
apple:mac_os_xthrough 10.11.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian6.0openssh1:5.5p1-6+squeeze8DLA-387-1
Debian7openssh1:6.0p1-4+deb7u3DSA-3446-1
Debian8openssh1:6.7p1-5+deb8u1DSA-3446-1
Debian12, 13, 14openssh1:7.1p2-1DEBIAN-CVE-2016-0777
Ubuntu14.04:LTSopenssh1:6.6p1-2ubuntu2.4UBUNTU-CVE-2016-0777 USN-2869-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreopenssh, openssh-ldap, openssh-keycat and 5 more0:6.6.1p1-23.el7_2RHSA-2016:0043
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepam_ssh_agent_auth0:0.9.3-9.23.el7_2RHSA-2016:0043
SUSELinux Enterprise Desktop 11 SP3, Linux Enterprise Server 11 SP3, Linux Enterprise Server 11 SP3-TERADATA and 1 moreopenssh6.2p2-0.24.1SUSE-SU-2016:0119-1
SUSELinux Enterprise Desktop 11 SP3, Linux Enterprise Server 11 SP3, Linux Enterprise Server 11 SP3-TERADATA and 1 moreopenssh-askpass-gnome6.2p2-0.24.3SUSE-SU-2016:0119-1
SUSELinux Enterprise Desktop 11 SP4, Linux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4openssh6.6p1-16.1SUSE-SU-2016:0120-1
SUSELinux Enterprise Desktop 11 SP4, Linux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4openssh-askpass-gnome6.6p1-16.4SUSE-SU-2016:0120-1
SUSELinux Enterprise Desktop 12, Linux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 and 3 moreopenssh, openssh-askpass-gnome6.6p1-33.1SUSE-SU-2016:0118-1
SUSELinux Enterprise Server 11-SECURITYopenssh-openssl16.6p1-10.1SUSE-SU-2016:0117-1
openSUSETumbleweedopenssh7.2p2-3.1openSUSE-SU-2024:10174-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue does not affect the version OpenSSH as shipped with Red Hat Enterprise Linux 4, 5 and 6. This issue affects the version of OpenSSH as shipped with Red Hat Enterprise Linux 7 in a non-default configuration. For more information please refer to https://access.redhat.com/articles/2123781

Red Hat's mitigation

1. The vulnerable roaming code can be permanently disabled by adding the

undocumented option "UseRoaming no" to the system-wide configuration

file (usually /etc/ssh/ssh_config), or per-user configuration file

(~/.ssh/config), or command-line (-o "UseRoaming no").

2. If an OpenSSH client is disconnected from an SSH server that offers

roaming, it prints "[connection suspended, press return to resume]" on

stderr, and waits for '\n' or '\r' on stdin (and not on the controlling

terminal) before it reconnects to the server; advanced users may become

suspicious and press Control-C or Control-Z instead, thus avoiding the

information leak.

However, SSH commands that use the local stdin to transfer data to the

remote server are bound to trigger this reconnection automatically (upon

reading a '\n' or '\r' from stdin). Moreover, these non-interactive SSH

commands (for example, backup scripts and cron jobs) commonly employ

public-key authentication and are therefore perfect targets for this

information leak.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7openssh-0:6.6.1p1-23.el7_2Fixed 2016-01-14RHSA-2016:0043
Red Hat Enterprise Linux 4opensshNot affected
Red Hat Enterprise Linux 5opensshNot affected
Red Hat Enterprise Linux 6opensshNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-0777.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-349-21Siemens SCALANCE X-200RNA Switch Devices2022-12-13MultipleSCALANCE X204RNA (HSR) (6GK5204-0BA00-2MB2), SCALANCE X204RNA (PRP) (6GK5204-0BA00-2KB2), SCALANCE X204RNA EEC (HSR) (6GK5204-0BS00-2NA3) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET EXPLOIT Possible CVE-2016-0777 Server Advertises Suspicious Roaming Support sid 2022369
  • Emerging Threats Open ET EXPLOIT Possible CVE-2016-0777 Client Sent Roaming Resume Request sid 2022370

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON