| 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, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, 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) | bullseye | 0.9.8-0+deb11u1 | fixed |
| bullseye (security) | 0.9.8-0+deb11u2 | fixed | |
| bookworm, bookworm (security) | 0.10.6-0+deb12u1 | fixed | |
| trixie | 0.11.2-1+deb13u1 | fixed | |
| forky, sid | 0.11.3-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 | 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)