CVE-2016-6515
High · 7.5CVSS
7.5
EPSS
58.6%
Published
Aug 7, 2016
CISA due date
—
Cloudanix analysis
A flaw in older SSH server software lets remote attackers send very long passwords that tie up the server's processing power and slow down or block legitimate logins.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The auth_password function in OpenSSH sshd accepts arbitrarily long passwords without length limits, causing excessive CPU consumption in the crypt() function during password authentication attempts.
Why it matters to the business
Attackers can remotely exhaust server CPU resources through repeated authentication attempts, leading to degraded SSH service performance, potential denial of legitimate access, and operational disruption for systems relying on SSH.
How an attack unfolds
An attacker connects to an affected OpenSSH server and submits an extremely long password string during the authentication phase; the server processes the full string through crypt() without bounds checking, consuming CPU cycles and allowing repeated attempts to amplify resource exhaustion.
How to fix it
Upgrade openssh/openssh-portable to the fixed commit fcd135c9df440bcd2d5870405ad3311743d78d97 or later; apply vendor patches for versions prior to 7.3; enforce network-level rate limiting on SSH ports as a temporary control.
How to confirm the fix worked
Verify the installed OpenSSH version is 7.3 or newer; review source or binary for the presence of password length checks in auth-passwd.c; test by attempting authentication with a long password string and confirming CPU usage remains bounded.
Typical attack path
- Establish TCP connection to SSH port on target server
- Initiate password authentication with a crafted string exceeding 100000 characters
- Repeat connection attempts to sustain CPU load on the crypt operation
- Monitor for service degradation or unavailability of SSH access
How to detect it
Review SSH authentication logs for repeated connections from the same sources; correlate with system metrics showing elevated CPU usage by sshd processes during auth phases; search for entries indicating password authentication attempts without successful login.
- sshd process high CPU during password auth
- auth.log entries with password authentication failures from single IPs
- long password strings in failed auth attempts
What your security team should do
- Prioritize patching all public-facing OpenSSH instances to the fixed commit immediately due to public exploit availability
- Implement fail2ban or equivalent rate limiting on SSH authentication attempts
- Monitor for high CPU utilization by sshd processes during authentication windows
- Disable password authentication in favor of key-based methods where feasible
The record
The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password authentication, which allows remote attackers to cause a denial of service (crypt CPU consumption) via a long string.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.2 | openssh | 0 | 6.8_p1-r8 |
| Alpine:v3.3 | openssh | 0 | 7.2_p2-r2 |
| Alpine:v3.4 | openssh | 0 | 7.2_p2-r2 |
| Debian:11 | openssh | 0 | 1:7.3p1-1 |
| Debian:12 | openssh | 0 | 1:7.3p1-1 |
| Debian:13 | openssh | 0 | 1:7.3p1-1 |
| Debian:7 | openssh | 0 | 1:6.0p1-4+deb7u6 |
| Debian:8 | openssh | 0 | 1:6.7p1-5+deb8u6 |
| Mageia:5 | openssh | 0 | 6.6p1-5.9.mga5 |
| Red Hat:enterprise_linux:7::client | openssh | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-askpass | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-cavs | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-clients | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-debuginfo | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-keycat | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-ldap | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-server | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | openssh-server-sysvinit | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::client | pam_ssh_agent_auth | 0 | 0:0.10.3-1.11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-askpass | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-cavs | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-clients | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-debuginfo | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-keycat | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-ldap | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-server | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | openssh-server-sysvinit | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::computenode | pam_ssh_agent_auth | 0 | 0:0.10.3-1.11.el7 |
| Red Hat:enterprise_linux:7::server | openssh | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-askpass | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-cavs | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-clients | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-debuginfo | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-keycat | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-ldap | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-server | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | openssh-server-sysvinit | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::server | pam_ssh_agent_auth | 0 | 0:0.10.3-1.11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-askpass | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-cavs | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-clients | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-debuginfo | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-keycat | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-ldap | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-server | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | openssh-server-sysvinit | 0 | 0:7.4p1-11.el7 |
| Red Hat:enterprise_linux:7::workstation | pam_ssh_agent_auth | 0 | 0:0.10.3-1.11.el7 |
| SUSE:Linux Enterprise Desktop 12 SP1 | openssh | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Desktop 12 SP1 | openssh-askpass-gnome | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | openssh | 0 | 6.2p2-0.33.2 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | openssh-askpass-gnome | 0 | 6.2p2-0.33.5 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | openssh | 0 | 6.2p2-0.33.2 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | openssh-askpass-gnome | 0 | 6.2p2-0.33.5 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | openssh | 0 | 6.2p2-0.33.2 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | openssh-askpass-gnome | 0 | 6.2p2-0.33.5 |
| SUSE:Linux Enterprise Server 11 SP4 | openssh | 0 | 6.6p1-28.1 |
| SUSE:Linux Enterprise Server 11 SP4 | openssh-askpass-gnome | 0 | 6.6p1-28.2 |
| SUSE:Linux Enterprise Server 11-SECURITY | openssh-openssl1 | 0 | 6.6p1-15.1 |
| SUSE:Linux Enterprise Server 12 SP1 | openssh | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Server 12 SP1 | openssh-askpass-gnome | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Server 12-LTSS | openssh | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Server 12-LTSS | openssh-askpass-gnome | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | openssh | 0 | 6.6p1-28.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | openssh-askpass-gnome | 0 | 6.6p1-28.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | openssh | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | openssh-askpass-gnome | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | openssh | 0 | 6.6p1-52.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | openssh-askpass-gnome | 0 | 6.6p1-52.1 |
| SUSE:Manager 2.1 | openssh | 0 | 6.2p2-0.33.2 |
| SUSE:Manager 2.1 | openssh-askpass-gnome | 0 | 6.2p2-0.33.5 |
| SUSE:Manager Proxy 2.1 | openssh | 0 | 6.2p2-0.33.2 |
| SUSE:Manager Proxy 2.1 | openssh-askpass-gnome | 0 | 6.2p2-0.33.5 |
| SUSE:OpenStack Cloud 5 | openssh | 0 | 6.2p2-0.33.2 |
| SUSE:OpenStack Cloud 5 | openssh-askpass-gnome | 0 | 6.2p2-0.33.5 |
| Ubuntu:14.04:LTS | openssh | 0 | 1:6.6p1-2ubuntu2.8 |
| Ubuntu:16.04:LTS | openssh | 0 | 1:7.2p2-4ubuntu2.1 |
| openSUSE:Tumbleweed | openssh | 0 | 7.2p2-3.1 |
Related vulnerabilities
- CVE-2016-6210 sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing… Also affects openssh
- CVE-2016-10011 authfile.c in sshd in OpenSSH before 7.4 does not properly consider the effects of… Also affects openssh
- CVE-2015-8325 The do_setup_env function in session.c in sshd in OpenSSH through 7.2p2, when the… Also affects openssh
- CVE-2016-1907 The ssh_packet_read_poll2 function in packet.c in OpenSSH before 7.1p2 allows remote… Also affects openssh
- CVE-2016-10012 The shared memory manager (associated with pre-authentication compression) in sshd in… Also affects openssh
- CVE-2016-10009 Untrusted search path vulnerability in ssh-agent.c in ssh-agent in OpenSSH before 7.4… Also affects openssh
- CVE-2017-15906 The process_open function in sftp-server.c in OpenSSH before 7.6 does not properly… Also affects openssh
- CVE-2025-32728 In sshd in OpenSSH before 10.0, the DisableForwarding directive does not adhere to the… Also affects openssh