CVE-2020-22218: High severity libssh2 libssh2 vulnerability
An issue was discovered in function libssh2packetadd in libssh2 1.10.0 allows attackers to access out of bounds memory.
Other sources
libssh2 is vulnerable to a denial of service, caused by an out-of-bounds read in the libssh2packetadd function. By sending a specially crafted request, a remote attacker could exploit this vulnerability to cause a denial of service.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/libssh2to a version that resolves this vulnerability.Fixed in 1.10.0 - Upgrade
Upgrade
redhat/libssh2to a version that resolves this vulnerability.Fixed in 1.11.0 - Upgrade
Upgrade
ubuntu/libssh2to a version that resolves this vulnerability.Fixed in 1.8.0-1ubuntu0.1 - Upgrade
Upgrade
ubuntu/libssh2to a version that resolves this vulnerability.Fixed in 1.8.0-2.1ubuntu0.1 - Upgrade
Upgrade
ubuntu/libssh2to a version that resolves this vulnerability.Fixed in 1.4.3-2ubuntu0.2+ - Upgrade
Upgrade
ubuntu/libssh2to a version that resolves this vulnerability.Fixed in 1.5.0-2ubuntu0.1+ - Upgrade
Upgrade
debian/libssh2to a version that resolves this vulnerability.Fixed in 1.8.0-2.1+deb10u1Fixed in 1.10.0-3Fixed in 1.11.0-4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 17.1.2.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.4.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.7.01.5.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.8.0 - Upgrade
Upgrade
libssh2to a version that resolves this vulnerability.Patch 642eec48ff3adfdb7a9e562b6d7fc865d1733f45
Event History
Frequently Asked Questions
What is CVE-2020-22218?
CVE-2020-22218 is a vulnerability in libssh2 1.10.0 that allows attackers to access out-of-bounds memory.
How severe is CVE-2020-22218?
CVE-2020-22218 has a severity rating of 7.5 (high).
What software versions are affected by CVE-2020-22218?
CVE-2020-22218 affects libssh2 1.10.0, ubuntu/libssh2 1.4.3-2ubuntu0.2+, ubuntu/libssh2 1.5.0-2ubuntu0.1+, ubuntu/libssh2 1.8.0-1ubuntu0.1, ubuntu/libssh2 1.8.0-2.1ubuntu0.1, and debian/libssh2 1.8.0-2.1+deb10u1, 1.10.0-3, and 1.11.0-2.
How can I fix CVE-2020-22218?
To fix CVE-2020-22218, update to a version of libssh2 that is not affected by the vulnerability.
Where can I find more information about CVE-2020-22218?
You can find more information about CVE-2020-22218 at the following references: [GitHub](https://github.com/libssh2/libssh2/pull/476), [Debian LTS](https://lists.debian.org/debian-lts-announce/2023/09/msg00006.html), [CVE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-22218).