CVE-2012-4561 in Libssh
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no confidentiality impact, no integrity impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Libssh | Libssh | ≤ 0.5.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2012-4561 |
|---|---|
| BreachSpider ID | BS-2012-GLOBAL-092180-M |
| CVSS vector | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Published | 2012-11-30 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2012. A medium severity vulnerability affects Libssh systems (CVE-2012-4561). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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. CVSS vector: AV:N/AC:L/Au:N/C:N/I:N/A:P.
Questions
What is CVE-2012-4561?
This vulnerability was disclosed in 2012. A medium severity vulnerability affects Libssh systems (CVE-2012-4561). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2012-4561?
CVE-2012-4561 has CVSS 5.0 (Medium). Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P. EPSS: 4.8%.
Is CVE-2012-4561 actively exploited?
No confirmed active exploitation of CVE-2012-4561 as of 2026-09-25.
How do I remediate CVE-2012-4561?
Priority: MONITOR. Advisory: http://www.libssh.org/2012/11/20/libssh-0-5-3-security-release/ PSIRT: [email protected]
What systems are affected by CVE-2012-4561?
CVE-2012-4561 affects Libssh Libssh.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Libssh","product":"Libssh","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.