CVE-2012-4561: Medium severity libssh vulnerability

Published Oct 30, 2012
·
Updated

Florian Weimer of the Red Hat Product Security Team reported the existence of several unitialized heap allocations in the following functions:

keys.c:publickeymakedss() (key) keys.c:publickeymakersa() (key) keys.c:signaturefromstring() (sign) keys.c:sshdosign() (sign) keys.c:sshsignsessionid() (sign)

This could lead to freeing an invalid pointer on an error path, which could lead to a crash in the process using libssh.

Other sources

The (1) publickeymakedss, (2) publickeymakersa, (3) signaturefromstring, (4) sshdosign, and (5) sshsignsessionid 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.

MITRE

Affected Software

7 affected componentsFixes available
redhat/libssh<0.5.3
0.5.3
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-rc1
libssh libssh=0.5.1

Event History

Nov 30, 2012
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-4561?

CVE-2012-4561 is classified as a moderate severity vulnerability due to potential impacts from uninitialized heap allocations.

2

How do I fix CVE-2012-4561?

To fix CVE-2012-4561, update libssh to version 0.5.3 or later.

3

What software is affected by CVE-2012-4561?

CVE-2012-4561 affects versions of libssh up to 0.5.2 and specific versions like 0.4.7, 0.4.8, 0.5.0, and 0.5.1.

4

What types of functions are involved in CVE-2012-4561?

CVE-2012-4561 involves uninitialized heap allocations in various public key and signing functions within libssh.

5

Who reported CVE-2012-4561?

CVE-2012-4561 was reported by Florian Weimer of the Red Hat Product Security Team.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203