CVE-2012-4559Libssh
Medium 6.8 No auth needed
Follow: this CVE · Libssh · Libssh We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Libssh.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libssh | libssh | ≤ 0.5.2 |
| libssh | libssh | 0.4.7 |
| libssh | libssh | 0.4.8 |
| libssh | libssh | 0.5.0 |
| libssh | libssh | 0.5.0 |
| libssh | libssh | 0.5.1 |
Official sources
References
Links published by the sources. Open them with care.