Auth bypass in Libssh
CVE-2023-2283
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.
Vulnerability class: Broken Authentication
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.011, 65.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libssh
- Fedoraproject Fedora — versions 37
- Red Hat Enterprise Linux — versions 8.0, 9.0
- Libssh — versions libssh-2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (fkie-cad/nvd-json-data-feeds, GitHubSecurityLab/seclab-taskflow-agent, OSS-SASM/RhsaCveScanner). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- access.redhat.com/security/cve/CVE-2023-2283 (Third Party Advisory)
- www.libssh.org/security/advisories/CVE-2023-2283.txt (Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- FEDORA-2023-5fa5ca2043 (vendor-advisory)
- packetstormsecurity.com/files/172861/libssh-0.9.6-0.10.4-pki_verify_data_signat…
- GLSA-202312-05 (vendor-advisory)
- security.netapp.com/advisory/ntap-20240201-0005/
- seclists.org/fulldisclosure/2025/Feb/18