PT-2023-4889 · Libssh+9 · Libssh+9

Kevin Backhouse

·

Published

2023-04-17

·

Updated

2024-10-29

·

CVE-2023-2283

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions libssh versions 0.9.6 through 0.10.4
Description A vulnerability in the pki verify data signature function of the libssh library for client authentication is related to shortcomings in the authentication procedure. This issue may allow a remote attacker to bypass security restrictions and gain unauthorized access to protected information. 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.
Recommendations For libssh versions 0.9.6 through 0.10.4, consider disabling the pki verify data signature function as a temporary workaround until a patch is available. Restrict access to the affected authentication module to minimize the risk of exploitation. Avoid using the pki key check hash compatible function call in the affected API endpoint until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Improper Authentication

Weakness Enumeration

Related Identifiers

ALSA-2023:3839
ALSA-2023:6643
ALT-PU-2023-4094
ALT-PU-2023-4108
ALT-PU-2023-4683
ALT-PU-2023-4685
BDU:2023-05381
CESA-2023_3839
CVE-2023-2283
DSA-5409-1
MGASA-2023-0184
OESA-2023-1291
OESA-2023-1305
OESA-2023-1306
OESA-2023-1329
OPENSUSE-SU-2024:12914-1
RHSA-2023:3839
RHSA-2023:6643
RHSA-2023_3839
RHSA-2023_6643
RHSA-2024:0538
RLSA-2023:3839
ROSA-SA-2024-2516
SUSE-SU-2024:0140-1
SUSE-SU-2024:0525-1
SUSE-SU-2024:0539-1
USN-6138-1

Affected Products

Alt Linux
Almalinux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Libssh