Home / Libssh / Libssh / CVE-2012-4561
CVE-2012-4561: is it exploited, and which versions of Libssh are affected and fixed?
CVE-2012-4561 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 (5.0, 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-4561?
The (1) publickey_make_dss, (2) publickey_make_rsa, (3) signature_from_string, (4) ssh_do_sign, and (5) ssh_sign_session_id functions in keys.c in libssh before 0.5.3 free "an invalid pointer on an error path," which might allow remote attackers to cause a denial of service (crash) 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-4561?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/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-4561 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.75% probability of exploitation activity in the next 30 days, percentile 92.1 (FIRST EPSS, scores of December 2, 2026)
Where are the vendor advisories and references?
- DSA-2577 vendor-advisory, x_refsource_DEBIAN
- MDVSA-2012:175 vendor-advisory, x_refsource_MANDRIVA
- https://bugzilla.redhat.com/show_bug.cgi?id=871617 x_refsource_MISC
- 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
- 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
- libssh-multiple-dos(80220) vdb-entry, x_refsource_XF
- 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-4561
Is CVE-2012-4561 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 4.75% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libssh are affected by CVE-2012-4561?
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-4561?
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-4561?
Medium (5.0, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-4561?
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.