Description
Double free vulnerability in the sftp_mkdir function in sftp.c in libssh before 0.5.3 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via unspecified vectors, a different vector than CVE-2012-4559.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libssh | 0.5.3-1 | — |
| Debian 13 | libssh | 0.5.3-1 | — |
| Debian 12 | libssh | 0.5.3-1 | — |
| Debian 6.0 | libssh | 0.4.5-3+squeeze1 | DSA-2577-1 |
Advisories 1
- DSA-2577-1 libssh - several Debian Security (DSA / DLA) · Mar 9, 2026