CVE-2020-22218 Memory corruption in n/a
Attackers can trigger out-of-bounds memory access in libssh2, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-22218?
CVE-2020-22218 is a high-severity memory corruption vulnerability in n/a, published on 22 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in function _libssh2_packet_add in libssh2 1.10.0 allows attackers to access out of bounds memory.
Weakness: CWE-787
Which versions are affected by CVE-2020-22218?
It affects 1 product.
Linux distribution packages (40)
libssh2 Red Hat:enterprise_linux:7::client | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-devel Red Hat:enterprise_linux:7::client | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-docs Red Hat:enterprise_linux:7::client | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-docs Red Hat:enterprise_linux:7::computenode | All versions | 0:1.8.0-4.el7_9.1 |
libssh2 Red Hat:enterprise_linux:7::server | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-devel Red Hat:enterprise_linux:7::server | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-docs Red Hat:enterprise_linux:7::server | All versions | 0:1.8.0-4.el7_9.1 |
libssh2 Red Hat:enterprise_linux:7::workstation | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:1.8.0-4.el7_9.1 |
libssh2-docs Red Hat:enterprise_linux:7::workstation | All versions | 0:1.8.0-4.el7_9.1 |
libssh2_org SUSE:Enterprise Storage 7 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Enterprise Storage 7.1 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Micro 5.1 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Micro 5.2 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Micro 5.3 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Micro 5.4 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.4.3-26.5.1 |
libssh2_org SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.4.3-26.5.1 |
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 1.4.3-26.5.1 |
libssh2_org SUSE:Manager Proxy 4.2 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org SUSE:Manager Server 4.2 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org openSUSE:Leap 15.4 | All versions | 1.9.0-150000.4.16.1 |
libssh2_org openSUSE:Leap 15.5 | All versions | 1.9.0-150000.4.16.1 |
Products include Libssh2 Libssh2.
How do I fix CVE-2020-22218?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2020-22218 being exploited?
There is no known exploitation of CVE-2020-22218 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2026-55200 libssh2 - Out-of-Bounds Write via Unchecked packet_length in transport.c
- CVE-2026-66032 libssh2 Double-Free Heap Corruption via sftp_open()
- CVE-2026-66033 libssh2 Integer Underflow DoS via AES-GCM Cipher Negotiation
- CVE-2026-58050 libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation
- CVE-2026-58051 libssh2 - Free of Uninitialized Pointer in publickey List Cleanup
Sources
Also known as AZL-28594, CLSA-2023-1695835334, CLSA-2023-1695835423, CLSA-2023-1695835793, DEBIAN-CVE-2020-22218, GHSA-4wvm-v4fc-prp5 and 6 more.