CVE-2023-3603

NameCVE-2023-3603
DescriptionA missing allocation check in sftp server processing read requests may cause a NULL dereference on low-memory conditions. The malicious client can request up to 4GB SFTP reads, causing allocation of up to 4GB buffers, which was not being checked for failure. This will likely crash the authenticated user's sftp server connection (if implemented as forking as recommended). For thread-based servers, this might also cause DoS for legitimate users. Given this code is not in any released versions, no security releases have been issued.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libssh (PTS)jessie, jessie (lts)0.6.3-4+deb8u6fixed
stretch (security)0.7.3-2+deb9u3fixed
stretch (lts), stretch0.7.3-2+deb9u4fixed
buster (security), buster, buster (lts)0.8.7-1+deb10u2fixed
bullseye (security), bullseye0.9.8-0+deb11u1fixed
bookworm (security), bookworm0.10.6-0+deb12u1fixed
sid, trixie0.11.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libsshsource(unstable)(not affected)

Notes

- libssh <not-affected> (Vulnerable code not present in 0.10.5/any released version)
https://www.libssh.org/security/advisories/CVE-2023-3603.txt
https://git.libssh.org/projects/libssh.git/commit/?id=fe80f47b0ae8902d229ef9b8a1b4fa949b92e720
https://bugzilla.redhat.com/show_bug.cgi?id=2221791

Search for package or bug name: Reporting problems