Live threats

All CVEs / Libssh

CVE-2012-4559Libssh

Medium 6.8 No auth needed

Priority
56
CVSS 2.0
6.8
EPSS
5.2%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Nov 30, 2012
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-399
Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P

What happens

Multiple double free vulnerabilities in the (1) agent_sign_data function in agent.c, (2) channel_request function in channels.c, (3) ssh_userauth_pubkey function in auth.c, (4) sftp_parse_attr_3 function in sftp.c, and (5) try_publickey_from_file function in keyfiles.c in libssh before 0.5.3 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via unspecified vectors.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libssh.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
libsshlibssh≤ 0.5.2
libsshlibssh0.4.7
libsshlibssh0.4.8
libsshlibssh0.5.0
libsshlibssh0.5.0
libsshlibssh0.5.1

Official sources

References

Links published by the sources. Open them with care.