Name | CVE-2023-2283 |
Description | A vulnerability was found in libssh, where the authentication check of the connecting client can be bypassed in the`pki_verify_data_signature` function in memory allocation problems. This issue may happen if there is insufficient memory or the memory usage is limited. The problem is caused by the return value `rc,` which is initialized to SSH_ERROR and later rewritten to save the return value of the function call `pki_key_check_hash_compatible.` The value of the variable is not changed between this point and the cryptographic verification. Therefore any error between them calls `goto error` returning SSH_OK. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5409-1 |
Debian Bugs | 1035832 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libssh (PTS) | jessie, jessie (lts) | 0.6.3-4+deb8u6 | fixed |
stretch (security) | 0.7.3-2+deb9u3 | fixed | |
stretch (lts), stretch | 0.7.3-2+deb9u4 | fixed | |
buster (security), buster, buster (lts) | 0.8.7-1+deb10u2 | fixed | |
bullseye (security), bullseye | 0.9.8-0+deb11u1 | fixed | |
bookworm (security), bookworm | 0.10.6-0+deb12u1 | fixed | |
sid, trixie | 0.11.1-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libssh | source | jessie | (not affected) | |||
libssh | source | stretch | (not affected) | |||
libssh | source | buster | (not affected) | |||
libssh | source | bullseye | 0.9.7-0+deb11u1 | DSA-5409-1 | ||
libssh | source | (unstable) | 0.10.5-1 | 1035832 |
[buster] - libssh <not-affected> (Vulnerable code introduced later)
https://www.libssh.org/security/advisories/CVE-2023-2283.txt
Fixed by: https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.10&id=e8dfbb85a28514e1f869dac3000c6cec6cb8d08d (libssh-0.10.5)
Fixed by: https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.10&id=c68a58575b6d0520e342cb3d3796a8fecd66405d (libssh-0.10.5)
Vulnerable function introduced with: https://git.libssh.org/projects/libssh.git/commit/?id=fd9446553b5e06c95c67945959b228e44c870b73 (libssh-0.9.0)
[stretch] - libssh <not-affected> (Vulnerable code introduced later)
[jessie] - libssh <not-affected> (Vulnerable code introduced later)