Home / Libssh / Libssh / CVE-2012-4559
CVE-2012-4559: is it exploited, and which versions of Libssh are affected and fixed?
CVE-2012-4559 is a vulnerability in Libssh. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 06:38 UTC). Affected: libssh through 0.5.2, libssh 0.4.7, libssh 0.4.8 and 2 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.8, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:48 UTC.
What is CVE-2012-4559?
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.
From the CVE record by redhat, last updated August 6, 2024, 20:42 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libssh | libssh | through 0.5.2 | application |
| libssh | libssh | 0.4.7 | application |
| libssh | libssh | 0.4.8 | application |
| libssh | libssh | 0.5.0 | application |
| libssh | libssh | 0.5.1 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:45 UTC.
How severe is CVE-2012-4559?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-4559 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 5.18% probability of exploitation activity in the next 30 days, percentile 92.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://bugzilla.redhat.com/show_bug.cgi?id=871612 x_refsource_MISC
- DSA-2577 vendor-advisory, x_refsource_DEBIAN
- MDVSA-2012:175 vendor-advisory, x_refsource_MANDRIVA
- USN-1640-1 vendor-advisory, x_refsource_UBUNTU
- openSUSE-SU-2013:0130 vendor-advisory, x_refsource_SUSE
- openSUSE-SU-2012:1622 vendor-advisory, x_refsource_SUSE
- libssh-code-execution(80218) vdb-entry, x_refsource_XF
- FEDORA-2012-18610 vendor-advisory, x_refsource_FEDORA
- openSUSE-SU-2012:1620 vendor-advisory, x_refsource_SUSE
- [oss-security] 20121120 libssh 0.5.3 release fixes multiple security issues mailing-list, x_refsource_MLIST
- FEDORA-2012-18677 vendor-advisory, x_refsource_FEDORA
- 56604 vdb-entry, x_refsource_BID
- http://www.libssh.org/2012/11/20/libssh-0-5-3-security-release/ x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- August 21, 2012
- Published
- November 30, 2012, 22:00 UTC
- CVE record updated
- August 6, 2024, 20:42 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:45 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:48 UTC; KEV December 3, 2026, 06:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libssh?
- Mar 8, 2026CVE-2026-3731 libssh: out-of-bounds read
- Jul 4, 2025CVE-2025-5351 libssh: double free
- Jul 4, 2025CVE-2025-5372 libssh: incorrect calculation
- Jul 21, 2023CVE-2023-3603 libssh: NULL pointer dereference (crash)
- May 26, 2023CVE-2023-2283 libssh: authentication bypass (improper authentication)
- May 26, 2023CVE-2023-1667 libssh: NULL pointer dereference (crash)
- Aug 31, 2021CVE-2021-3634 libssh: out-of-bounds write (memory corruption)
- Jul 29, 2020CVE-2020-16135 Libssh: NULL pointer dereference (crash)
Questions about CVE-2012-4559
Is CVE-2012-4559 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:38 UTC. FIRST's EPSS gives it a 5.18% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libssh are affected by CVE-2012-4559?
libssh through 0.5.2, libssh 0.4.7, libssh 0.4.8, libssh 0.5.0 and libssh 0.5.1, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2012-4559?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2012-4559?
Medium (6.8, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-4559?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.