{"id":"CVE-2023-2283","state":"PUBLISHED","title":"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 problem","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.","publishedAt":"2023-05-26T00:00:00.000Z","updatedAt":"2025-11-03T20:35:18.528Z","severity":null,"assigner":"redhat","products":["n/a libssh"],"affected":[{"vendor":"n/a","product":"libssh","versions":[{"version":"libssh-2","status":"affected"}]}],"references":["https://access.redhat.com/security/cve/CVE-2023-2283","https://www.libssh.org/security/advisories/CVE-2023-2283.txt","https://bugzilla.redhat.com/show_bug.cgi?id=2189736","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/27PD44ALQTZXX7K6JAM3BXBUHYA6DFFN/","http://packetstormsecurity.com/files/172861/libssh-0.9.6-0.10.4-pki_verify_data_signature-Authorization-Bypass.html","https://security.gentoo.org/glsa/202312-05","https://security.netapp.com/advisory/ntap-20240201-0005/","http://seclists.org/fulldisclosure/2025/Feb/18"],"weaknesses":["CWE-287"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/2xxx/CVE-2023-2283.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-2283","state":"PUBLISHED","datePublished":"2023-05-26T00:00:00.000Z","dateUpdated":"2025-11-03T20:35:18.528Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2023-04-25T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"libssh","versions":[{"version":"libssh-2","status":"affected"}]}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2023-2283"},{"url":"https://www.libssh.org/security/advisories/CVE-2023-2283.txt"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2189736"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/27PD44ALQTZXX7K6JAM3BXBUHYA6DFFN/","name":"FEDORA-2023-5fa5ca2043","tags":["vendor-advisory"]},{"url":"http://packetstormsecurity.com/files/172861/libssh-0.9.6-0.10.4-pki_verify_data_signature-Authorization-Bypass.html"},{"url":"https://security.gentoo.org/glsa/202312-05","name":"GLSA-202312-05","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240201-0005/"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","type":"CWE","lang":"en","description":"CWE-287"}]}],"providerMetadata":{"shortName":"redhat","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateUpdated":"2024-02-01T17:06:59.699Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://access.redhat.com/security/cve/CVE-2023-2283","tags":["x_transferred"]},{"url":"https://www.libssh.org/security/advisories/CVE-2023-2283.txt","tags":["x_transferred"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2189736","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/27PD44ALQTZXX7K6JAM3BXBUHYA6DFFN/","name":"FEDORA-2023-5fa5ca2043","tags":["vendor-advisory","x_transferred"]},{"url":"http://packetstormsecurity.com/files/172861/libssh-0.9.6-0.10.4-pki_verify_data_signature-Authorization-Bypass.html","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202312-05","name":"GLSA-202312-05","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240201-0005/","tags":["x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2025/Feb/18"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:35:18.528Z"}}]}}}