CVE-2014-8132
NoneCVSS
—
EPSS
5.1%
Published
Dec 29, 2014
CISA due date
—
Cloudanix analysis
A flaw in an older version of an SSH library used by some file-transfer tools can let attackers crash the service by sending a specially made network message.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Double free in ssh_packet_kexinit during key exchange handshake processing allows remote memory corruption that results in denial of service.
Why it matters to the business
Unexpected service outages and loss of availability for any systems relying on the vulnerable SSH client or library components until patches are applied.
How an attack unfolds
An unauthenticated remote attacker connects to an affected SSH endpoint and sends a specially crafted kexinit packet that triggers the double-free condition in the key exchange initialization handler.
How to fix it
Upgrade affected curl packages to the listed fixed versions: 7.47.0-1 on Debian 11/12/13 and 7.35.0-1ubuntu2.6 on Ubuntu 14.04 LTS; rebuild or replace any statically linked libssh 0.5.x/0.6.x instances with version 0.6.4 or later.
How to confirm the fix worked
Verify installed package versions against the fixed releases; confirm libssh version strings in binaries or runtime logs show 0.6.4 or newer; test connectivity with a benign kexinit exchange to ensure no crash occurs.
Typical attack path
- Establish TCP connection to target SSH service
- Send malicious SSH_MSG_KEXINIT packet with crafted algorithm lists
- Trigger double free during packet processing leading to crash or instability
How to detect it
Review historical SSH daemon or client logs around the time of any unexplained crashes for malformed kexinit packets; examine core dumps or memory error logs indicating double-free conditions in kex.c.
What your security team should do
- Apply the listed package upgrades immediately on all affected Debian and Ubuntu systems
- Scan for any custom builds or embedded copies of libssh < 0.6.4 and replace them
- Monitor for availability alerts on SSH-dependent services while patches are rolled out
- Review dependency trees to identify any additional downstream packages still using vulnerable libssh
The record
Double free vulnerability in the ssh_packet_kexinit function in kex.c in libssh 0.5.x and 0.6.x before 0.6.4 allows remote attackers to cause a denial of service via a crafted kexinit packet.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libssh | 0 | 0.6.3-4 |
| Debian:12 | libssh | 0 | 0.6.3-4 |
| Debian:13 | libssh | 0 | 0.6.3-4 |
| Mageia:4 | libssh | 0 | 0.5.5-2.2.mga4 |
| Ubuntu:14.04:LTS | libssh | 0 | 0.6.1-0ubuntu3.1 |
| openSUSE:Tumbleweed | libssh | 0 | 0.7.2-2.1 |
Related vulnerabilities
- CVE-2015-3146 The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in… Also affects libssh
- CVE-2012-4562 Multiple integer overflows in libssh before 0.5.3 allow remote attackers to cause a… Also affects libssh
- CVE-2026-0968 A flaw was found in libssh in which a malicious SFTP (SSH File Transfer Protocol) server… Also affects libssh
- CVE-2026-0967 A flaw was found in libssh. Also affects libssh
- CVE-2026-0966 A flaw was found in libssh. Also affects libssh
- CVE-2026-0964 A malicious SCP server can send unexpected paths that could make the client application… Also affects libssh
- CVE-2026-0965 A flaw was found in libssh where it can attempt to open arbitrary files during… Also affects libssh