CVE-2020-22218 Memory corruption in n/a

High 7.5 Published Updated

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::clientAll versions0:1.8.0-4.el7_9.1
libssh2-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:1.8.0-4.el7_9.1
libssh2-devel Red Hat:enterprise_linux:7::clientAll versions0:1.8.0-4.el7_9.1
libssh2-docs Red Hat:enterprise_linux:7::clientAll versions0:1.8.0-4.el7_9.1
libssh2-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:1.8.0-4.el7_9.1
libssh2-devel Red Hat:enterprise_linux:7::computenodeAll versions0:1.8.0-4.el7_9.1
libssh2-docs Red Hat:enterprise_linux:7::computenodeAll versions0:1.8.0-4.el7_9.1
libssh2 Red Hat:enterprise_linux:7::serverAll versions0:1.8.0-4.el7_9.1
libssh2-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1.8.0-4.el7_9.1
libssh2-devel Red Hat:enterprise_linux:7::serverAll versions0:1.8.0-4.el7_9.1
libssh2-docs Red Hat:enterprise_linux:7::serverAll versions0:1.8.0-4.el7_9.1
libssh2 Red Hat:enterprise_linux:7::workstationAll versions0:1.8.0-4.el7_9.1
libssh2-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:1.8.0-4.el7_9.1
libssh2-devel Red Hat:enterprise_linux:7::workstationAll versions0:1.8.0-4.el7_9.1
libssh2-docs Red Hat:enterprise_linux:7::workstationAll versions0:1.8.0-4.el7_9.1
libssh2_org SUSE:Enterprise Storage 7All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Enterprise Storage 7.1All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Micro 5.1All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Micro 5.2All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Micro 5.3All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Micro 5.4All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Server 12 SP5All versions1.4.3-26.5.1
libssh2_org SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.4.3-26.5.1
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.4.3-26.5.1
libssh2_org SUSE:Manager Proxy 4.2All versions1.9.0-150000.4.16.1
libssh2_org SUSE:Manager Server 4.2All versions1.9.0-150000.4.16.1
libssh2_org openSUSE:Leap 15.4All versions1.9.0-150000.4.16.1
libssh2_org openSUSE:Leap 15.5All versions1.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.

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.

Is CVE-2020-22218 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free