Resource Management Errors Affecting libssh package, versions [,0.5.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
3.82% (88th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBSSH-2379522
  • published26 Jan 2022
  • disclosed30 Nov 2012
  • creditUnknown

Introduced: 30 Nov 2012

CVE-2012-4559  (opens in a new tab)
CWE-399  (opens in a new tab)

How to fix?

Upgrade libssh to version 0.5.3 or higher.

Overview

Affected versions of this package are vulnerable to Resource Management Errors. 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.

References

CVSS Base Scores

version 3.1