Every CVE Search/ Get API key

CVE-2020-16135

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

5.9 MediumFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

4.11%Up 2.2 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 5.9

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

Record
CVE-2020-16135
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-476
Updated
2026-11-02
CVE List No score

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

Record
CVE-2020-16135
Updated
2026-11-02
EUVDEUVD-2020-8101 No score

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

Record
EUVD-2020-8101
Updated
2026-11-03
GitHub AdvisoriesGHSA-9j7p-fvvp-cp57 5.9

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

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

Record
GHSA-9j7p-fvvp-cp57
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-476
Updated
2026-11-02
OSVALPINE-CVE-2020-16135 5.9

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

Record
ALPINE-CVE-2020-16135
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVBELL-CVE-2020-16135 5.9

CVE-2020-16135 does not affect BellSoft software

Record
BELL-CVE-2020-16135
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 13 moreShow less
OSV 5.9

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

Record
CVE-2020-16135
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2020-16135 5.9

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

Record
DEBIAN-CVE-2020-16135
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2021:4387 5.9

Red Hat Security Advisory: libssh security update

Record
RHSA-2021:4387
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2021:4750 8.8

Red Hat Security Advisory: Red Hat Virtualization Host security and bug fix update [ovirt-4.4.9] 0-day

Record
RHSA-2021:4750
CVSS 3.1
8.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRLSA-2021:4387 5.9

Low: libssh security update

libssh is a library which implements the SSH protocol. It can be used to implement client and server applications.

Security Fix(es):

  • libssh: NULL pointer dereference in sftpserver.c if ssh_buffer_new returns NULL (CVE-2020-16135)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.

Record
RLSA-2021:4387
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2020-16135 5.9

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

Record
UBUNTU-CVE-2020-16135
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVALSA-2021:4387 No score

Low: libssh security update

libssh is a library which implements the SSH protocol. It can be used to implement client and server applications.

Security Fix(es):

  • libssh: NULL pointer dereference in sftpserver.c if ssh_buffer_new returns NULL (CVE-2020-16135)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Record
ALSA-2021:4387
Updated
2026-11-02
OSVMGASA-2020-0324 No score

Updated libssh packages fix security vulnerability

The code in src/sftpserver.c did not verify the validity of certain pointers and expected them to be valid. A NULL pointer dereference could have been occurred that typically causes a crash and thus a denial-of-service (CVE-2020-16135).

Record
MGASA-2020-0324
Updated
2026-11-02
OSVMGASA-2020-0338 No score

Updated freerdp packages fix security vulnerability

Integer overflow due to missing input sanitation in rdpegfx channel. The input rectangles from the server are not checked against local surface coordinates and blindly accepted. A malicious server can send data that will crash the client later on (invalid length arguments to a memcpy) (CVE-2020-15103).

The freerdp package has been updated to version 2.2.0, fixing this issue and other bugs.

Record
MGASA-2020-0338
Updated
2026-11-02
OSVopenSUSE-SU-2024:10998-1 No score

libssh-config-0.9.6-1.2 on GA media

These are all security issues fixed in the libssh-config-0.9.6-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10998-1
Updated
2026-11-02
OSVSUSE-SU-2024:0525-1 No score

Security update for libssh

This update for libssh fixes the following issues:

Update to version 0.9.8 (jsc#PED-7719):

  • Fix CVE-2023-6004: Command injection using proxycommand (bsc#1218209)
  • Fix CVE-2023-48795: Potential downgrade attack using strict kex (bsc#1218126)
  • Fix CVE-2023-6918: Missing checks for return values of MD functions (bsc#1218186)
  • Allow @ in usernames when parsing from URI composes

Update to version 0.9.7:

  • Fix CVE-2023-1667: a NULL dereference during rekeying with algorithm guessing (bsc#1211188)
  • Fix CVE-2023-2283: a possible authorization bypass in pki_verify_data_signature under low-memory conditions (bsc#1211190)
  • Fix several memory leaks in GSSAPI handling code

Update to version 0.9.6 (bsc#1189608, CVE-2021-3634):

Update to 0.9.5 (bsc#1174713, CVE-2020-16135):

  • CVE-2020-16135: Avoid null pointer dereference in sftpserver (T232)
  • Improve handling of library initialization (T222)
  • Fix parsing of subsecond times in SFTP (T219)
  • Make the documentation reproducible
  • Remove deprecated API usage in OpenSSL
  • Fix regression of ssh_channel_poll_timeout() returning SSH_AGAIN
  • Define version in one place (T226)
  • Prevent invalid free when using different C runtimes than OpenSSL (T229)
  • Compatibility improvements to testsuite

Update to version 0.9.4

Update to version 0.9.3

  • Fixed CVE-2019-14889 - SCP: Unsanitized location leads to command execution (bsc#1158095)
  • SSH-01-003 Client: Missing NULL check leads to crash in erroneous state
  • SSH-01-006 General: Various unchecked Null-derefs cause DOS
  • SSH-01-007 PKI Gcrypt: Potential UAF/double free with RSA pubkeys
  • SSH-01-010 SSH: Deprecated hash function in fingerprinting
  • SSH-01-013 Conf-Parsing: Recursive wildcards in hostnames lead to DOS
  • SSH-01-014 Conf-Parsing: Integer underflow leads to OOB array access
  • SSH-01-001 State Machine: Initial machine states should be set explicitly
  • SSH-01-002 Kex: Differently bound macros used to iterate same array
  • SSH-01-005 Code-Quality: Integer sign confusion during assignments
  • SSH-01-008 SCP: Protocol Injection via unescaped File Names
  • SSH-01-009 SSH: Update documentation which RFCs are implemented
  • SSH-01-012 PKI: Information leak via uninitialized stack buffer

Update to version 0.9.2

  • Fixed libssh-config.cmake
  • Fixed issues with rsa algorithm negotiation (T191)
  • Fixed detection of OpenSSL ed25519 support (T197)

Update to version 0.9.1

  • Added support for Ed25519 via OpenSSL
  • Added support for X25519 via OpenSSL
  • Added support for localuser in Match keyword
  • Fixed Match keyword to be case sensitive
  • Fixed compilation with LibreSSL
  • Fixed error report of channel open (T75)
  • Fixed sftp documentation (T137)
  • Fixed known_hosts parsing (T156)
  • Fixed build issue with MinGW (T157)
  • Fixed build with gcc 9 (T164)
  • Fixed deprecation issues (T165)
  • Fixed known_hosts directory creation (T166)
  • Split out configuration to separate package to not mess up the library packaging and coinstallation

Update to verion 0.9.0

  • Added support for AES-GCM
  • Added improved rekeying support
  • Added performance improvements
  • Disabled blowfish support by default
  • Fixed several ssh config parsing issues
  • Added support for DH Group Exchange KEX
  • Added support for Encrypt-then-MAC mode
  • Added support for parsing server side configuration file
  • Added support for ECDSA/Ed25519 certificates
  • Added FIPS 140-2 compatibility
  • Improved known_hosts parsing
  • Improved documentation
  • Improved OpenSSL API usage for KEX, DH, and signatures
  • Add libssh client and server config files
Record
SUSE-SU-2024:0525-1
Updated
2026-11-02
OSVSUSE-SU-2024:0539-1 No score

Security update for libssh

This update for libssh fixes the following issues:

Update to version 0.9.8 (jsc#PED-7719):

  • Fix CVE-2023-6004: Command injection using proxycommand (bsc#1218209)
  • Fix CVE-2023-48795: Potential downgrade attack using strict kex (bsc#1218126)
  • Fix CVE-2023-6918: Missing checks for return values of MD functions (bsc#1218186)
  • Allow @ in usernames when parsing from URI composes

Update to version 0.9.7

  • Fix CVE-2023-1667: a NULL dereference during rekeying with algorithm guessing (bsc#1211188)
  • Fix CVE-2023-2283: a possible authorization bypass in pki_verify_data_signature under low-memory conditions (bsc#1211190)
  • Fix several memory leaks in GSSAPI handling code

Update to version 0.9.6 (bsc#1189608, CVE-2021-3634)

Update to version 0.9.5 (bsc#1174713, CVE-2020-16135):

  • CVE-2020-16135: Avoid null pointer dereference in sftpserver (T232)
  • Improve handling of library initialization (T222)
  • Fix parsing of subsecond times in SFTP (T219)
  • Make the documentation reproducible
  • Remove deprecated API usage in OpenSSL
  • Fix regression of ssh_channel_poll_timeout() returning SSH_AGAIN
  • Define version in one place (T226)
  • Prevent invalid free when using different C runtimes than OpenSSL (T229)
  • Compatibility improvements to testsuite

Update to version 0.9.4:

Update to version 0.9.3:

  • Fixed CVE-2019-14889 - SCP: Unsanitized location leads to command execution (bsc#1158095)
  • SSH-01-003 Client: Missing NULL check leads to crash in erroneous state
  • SSH-01-006 General: Various unchecked Null-derefs cause DOS
  • SSH-01-007 PKI Gcrypt: Potential UAF/double free with RSA pubkeys
  • SSH-01-010 SSH: Deprecated hash function in fingerprinting
  • SSH-01-013 Conf-Parsing: Recursive wildcards in hostnames lead to DOS
  • SSH-01-014 Conf-Parsing: Integer underflow leads to OOB array access
  • SSH-01-001 State Machine: Initial machine states should be set explicitly
  • SSH-01-002 Kex: Differently bound macros used to iterate same array
  • SSH-01-005 Code-Quality: Integer sign confusion during assignments
  • SSH-01-008 SCP: Protocol Injection via unescaped File Names
  • SSH-01-009 SSH: Update documentation which RFCs are implemented
  • SSH-01-012 PKI: Information leak via uninitialized stack buffer

Update to version 0.9.2:

  • Fixed libssh-config.cmake
  • Fixed issues with rsa algorithm negotiation (T191)
  • Fixed detection of OpenSSL ed25519 support (T197)

Update to version 0.9.1:

  • Added support for Ed25519 via OpenSSL
  • Added support for X25519 via OpenSSL
  • Added support for localuser in Match keyword
  • Fixed Match keyword to be case sensitive
  • Fixed compilation with LibreSSL
  • Fixed error report of channel open (T75)
  • Fixed sftp documentation (T137)
  • Fixed known_hosts parsing (T156)
  • Fixed build issue with MinGW (T157)
  • Fixed build with gcc 9 (T164)
  • Fixed deprecation issues (T165)
  • Fixed known_hosts directory creation (T166)

Update to verion 0.9.0:

  • Added support for AES-GCM
  • Added improved rekeying support
  • Added performance improvements
  • Disabled blowfish support by default
  • Fixed several ssh config parsing issues
  • Added support for DH Group Exchange KEX
  • Added support for Encrypt-then-MAC mode
  • Added support for parsing server side configuration file
  • Added support for ECDSA/Ed25519 certificates
  • Added FIPS 140-2 compatibility
  • Improved known_hosts parsing
  • Improved documentation
  • Improved OpenSSL API usage for KEX, DH, and signatures
  • Add libssh client and server config files
Record
SUSE-SU-2024:0539-1
Updated
2026-11-02
OSVUSN-4447-1 No score

libssh vulnerability

It was discovered that libssh incorrectly handled certain requests. An attacker could possibly use this issue to cause a denial of service.

Record
USN-4447-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libssh
Alpine:v3.10
before 0.8.9-r1
0.8.9-r1
libssh
Alpine:v3.11
before 0.9.4-r1
0.9.4-r1
libssh
Alpine:v3.12
before 0.9.4-r1
0.9.4-r1
libssh
Alpine:v3.13
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.14
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.15
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.16
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.17
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.18
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.19
before 0.9.5-r0
0.9.5-r0
Show 39 moreShow less
Affected packages
PackageAffectedFixed
libssh
Alpine:v3.20
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.21
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.22
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.23
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.24
before 0.9.5-r0
0.9.5-r0
libssh
Alpine:v3.9
before 0.7.6-r3
0.7.6-r3
libssh-devel
AlmaLinux:8
before 0.9.4-3.el8
0.9.4-3.el8
libssh
Debian:12
before 0.9.5-1
0.9.5-1
libssh
Debian:13
before 0.9.5-1
0.9.5-1
libssh
Debian:14
before 0.9.5-1
0.9.5-1
libssh
Debian:9
before 0.7.3-2+deb9u3, plus listed versions
0.7.3-20.7.3-2+deb9u10.7.3-2+deb9u2
0.7.3-2+deb9u3
libssh
Mageia:7
before 0.8.9-1.1.mga7
0.8.9-1.1.mga7
freerdp
Mageia:7
before 2.2.0-1.mga7
2.2.0-1.mga7
libssh-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:0.9.4-3.el8
0:0.9.4-3.el8
libssh-debugsource
Red Hat:enterprise_linux:8::appstream
before 0:0.9.4-3.el8
0:0.9.4-3.el8
libssh-devel
Red Hat:enterprise_linux:8::appstream
before 0:0.9.4-3.el8
0:0.9.4-3.el8
libssh
Red Hat:enterprise_linux:8::baseos
before 0:0.9.4-3.el8
0:0.9.4-3.el8
libssh-config
Red Hat:enterprise_linux:8::baseos
before 0:0.9.4-3.el8
0:0.9.4-3.el8
libssh-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:0.9.4-3.el8
0:0.9.4-3.el8
libssh-debugsource
Red Hat:enterprise_linux:8::baseos
before 0:0.9.4-3.el8
0:0.9.4-3.el8
redhat-virtualization-host
Red Hat:rhev_hypervisor:4.4::el8
before 0:4.4.9-202111172338_8.5
0:4.4.9-202111172338_8.5
redhat-virtualization-host-image-update
Red Hat:rhev_hypervisor:4.4::el8
before 0:4.4.9-202111172338_8.5
0:4.4.9-202111172338_8.5
libssh
Rocky Linux:8
before 0:0.9.4-3.el8
0:0.9.4-3.el8
libssh
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise Server 15 SP2-LTSS
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise Server 15 SP3-LTSS
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise Server for SAP Applications 15 SP3
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise Micro 5.1
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise Micro 5.2
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Enterprise Storage 7.1
before 0.9.8-150200.13.3.1
0.9.8-150200.13.3.1
libssh
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 0.9.8-3.12.2
0.9.8-3.12.2
libssh
SUSE:Linux Enterprise Server 12 SP5
before 0.9.8-3.12.2
0.9.8-3.12.2
libssh
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 0.9.8-3.12.2
0.9.8-3.12.2
libssh
Ubuntu:16.04:LTS
before 0.6.3-4.3ubuntu0.6, plus listed versions
0.6.3-3ubuntu30.6.3-4.10.6.3-4.20.6.3-4.2ubuntu10.6.3-4.30.6.3-4.3ubuntu0.10.6.3-4.3ubuntu0.20.6.3-4.3ubuntu0.5
0.6.3-4.3ubuntu0.6
libssh
Ubuntu:18.04:LTS
before 0.8.0~20170825.94fa1e38-1ubuntu0.7, plus listed versions
0.7.5-10.8.0~20170825.94fa1e38-10.8.0~20170825.94fa1e38-1build10.8.0~20170825.94fa1e38-1ubuntu0.10.8.0~20170825.94fa1e38-1ubuntu0.20.8.0~20170825.94fa1e38-1ubuntu0.50.8.0~20170825.94fa1e38-1ubuntu0.6
0.8.0~20170825.94fa1e38-1ubuntu0.7
libssh
Ubuntu:20.04:LTS
before 0.9.3-2ubuntu2.1, plus listed versions
0.9.0-1ubuntu10.9.0-1ubuntu40.9.0-1ubuntu50.9.3-2ubuntu10.9.3-2ubuntu2
0.9.3-2ubuntu2.1
libssh
openSUSE:Tumbleweed
before 0.9.6-1.2
0.9.6-1.2

History

History
RecordedChangedSources
affectedOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-16135 is a medium vulnerability (CVSS 5.9) in Libssh, published July 29, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.11%, the 90th percentile. Fixed in libssh 0.8.9-r1.

References

Show 76 moreShow less
MoveEnter Open