Skip to content
OpenAdvisories
Unscored CVE-2023-2283 EUVD-2023-33789GHSA-h9jw-g3xj-5hwg

A vulnerability was found in libssh, where the authentication check of the connecting client can be bypassed in the`pki_verify_data_signatu…

Published May 26, 2023 · Updated Nov 3, 2025 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
— libssh libssh-2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh 0.10.5-1 —
Debian 13 libssh 0.10.5-1 —
Debian 12 libssh 0.10.5-1 —
Debian 11 libssh 0.9.7-0+deb11u1 DSA-5409-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libssh 0.9.6-2ubuntu0.22.04.1 USN-6138-1
Ubuntu 20.04 LTS libssh 0.9.3-2ubuntu2.3 USN-6138-1
ReleasePackageFixed inAdvisory
RHEL 9 libssh +2 0.10.4-11.el9 RHSA-2023:6643
RHEL 8 libssh +2 0.9.6-10.el8_8 RHSA-2023:3839
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.6 EUS libssh +2 0.9.6-4.el8_6 RHSA-2024:0538

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libssh +2 0.10.4-11.el9 ALSA-2023:6643
AlmaLinux 8 libssh +2 0.9.6-10.el8_8 ALSA-2023:3839

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libssh 0.9.6-10.el8_8 RLSA-2023:3839
ReleasePackageFixed inAdvisory
SLES 15 SP5 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLES 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLES 15 SP3 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES 15 SP2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES 12 SP5 libssh 0.9.8-3.12.2 SUSE-SU-2024:0539-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLES for SAP 15 SP3 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES for SAP 15 SP2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLES for SAP 12 SP5 libssh 0.9.8-3.12.2 SUSE-SU-2024:0539-1
SLE Real Time 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.5 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE Micro 5.2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLE Micro 5.1 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLE HPC 15 SP4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SLE HPC 15 SP3 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SLE HPC 15 SP2 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
SUSE Manager Server 4.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SUSE Manager Proxy 4.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
SUSE Enterprise Storage 7.1 libssh 0.9.8-150200.13.3.1 SUSE-SU-2024:0525-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh 0.10.5-1.1 openSUSE-SU-2024:12914-1
openSUSE Leap 15.5 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1
openSUSE Leap Micro 5.3 libssh 0.9.8-150400.3.3.1 SUSE-SU-2024:0140-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libssh +2 0.10.5-1.amzn2023.0.1 ALAS2023-2023-186

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libssh +2 0.10.4-11.el9 ELSA-2023-6643
Oracle Linux 8 libssh +2 0.9.6-10.el8_8 ELSA-2023-3839

Advisories 22

References