cve.bz

CVE-2020-16135 NULL Pointer Dereference

5.9 mediumExploit referenceEPSS 4.1%Fix available

Medium (5.9). EPSS 4.1% estimated probability of exploitation activity in the next 30 days.

On this page
libssh 0.9.4 has a NULL pointer dereference in tftpserver.c if ssh_buffer_new returns NULL.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
4.1% (unchanged from 4.1% a week ago; 4.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-16135 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-16135?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-16135?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-16135 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libssh:libssh0.9.4
debian:debian_linux9.0
fedoraproject:fedora32
fedoraproject:fedora33
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux20.04
oracle:communications_cloud_native_core_policy1.15.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libssh0.7.3-2+deb9u3DLA-2303-1
Debian12, 13, 14libssh0.9.5-1DEBIAN-CVE-2020-16135
Ubuntu16.04:LTSlibssh0.6.3-4.3ubuntu0.6UBUNTU-CVE-2020-16135 USN-4447-1
Ubuntu18.04:LTSlibssh0.8.0~20170825.94fa1e38-1ubuntu0.7UBUNTU-CVE-2020-16135 USN-4447-1
Ubuntu20.04:LTSlibssh0.9.3-2ubuntu2.1UBUNTU-CVE-2020-16135 USN-4447-1
Red Hatenterprise_linux:8::appstreamlibssh-devel, libssh-debuginfo, libssh-debugsource0:0.9.4-3.el8RHSA-2021:4387
Red Hatenterprise_linux:8::baseoslibssh, libssh-config, libssh-debuginfo and 1 more0:0.9.4-3.el8RHSA-2021:4387
Red Hatrhev_hypervisor:4.4::el8redhat-virtualization-host, redhat-virtualization-host-image-update0:4.4.9-202111172338_8.5RHSA-2021:4750
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morelibssh0.9.8-150200.13.3.1SUSE-SU-2024:0525-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libssh0.9.8-3.12.2SUSE-SU-2024:0539-1
openSUSETumbleweedlibssh0.9.6-1.2openSUSE-SU-2024:10998-1
AlmaLinux8libssh-devel0.9.4-3.el8ALSA-2021:4387
Rocky Linux8libssh0:0.9.4-3.el8RLSA-2021:4387
Alpinev3.9libssh0.7.6-r3ALPINE-CVE-2020-16135
Alpinev3.10libssh0.8.9-r1ALPINE-CVE-2020-16135
Alpinev3.11, v3.12libssh0.9.4-r1ALPINE-CVE-2020-16135
Alpinev3.13, v3.14, v3.15 and 9 morelibssh0.9.5-r0ALPINE-CVE-2020-16135

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

libssh2 as shipped with Red Hat Enterprise Linux 6, 7, and 8 are NOT affected by this flaw; libssh2 and libssh are different codebases and libssh2 does not contain the vulnerable code. Red Hat Product Security has set the impact of this flaw to Low because there is no demonstrated way for an attacker to reliably force a NULL pointer dereference via a code path in the affected libssh code.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libssh-0:0.9.4-3.el8Fixed 2021-11-09RHSA-2021:4387
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.9-202111172338_8.5Fixed 2021-11-19RHSA-2021:4750
Red Hat Enterprise Linux 6libssh2Not affected
Red Hat Enterprise Linux 7libsshFix deferred
Red Hat Enterprise Linux 7libssh2Not affected
Red Hat Enterprise Linux 8libssh2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-16135.

References

Check your stackJSON