Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2025-5372

Опубликовано: 24 июн. 2025
Источник: redhat
CVSS3: 5
EPSS Низкий

Описание

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

Отчет

The Red Hat Product Security team has assessed the severity of this vulnerability as Moderate due to the combination of limited prerequisites and its impact on confidentiality, integrity, and availability. The vulnerability is only present when libssh is built with OpenSSL versions older than 3.0. Successful exploitation could allow an attacker to initiate cryptographic operations using uninitialized keys, which may compromise secure SSH sessions.

Меры по смягчению последствий

To mitigate this issue, administrators should ensure that libssh is built against OpenSSL version 3.0 or later. This change eliminates the return code mismatch and prevents the erroneous use of uninitialized key material. It is also strongly recommended to apply vendor supplied patches or update to the latest libssh security release as soon as possible.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 10libsshNot affected
Red Hat Enterprise Linux 6libssh2Out of support scope
Red Hat Enterprise Linux 7libssh2Out of support scope
Red Hat Enterprise Linux 9libsshAffected
Red Hat OpenShift Container Platform 4rhcosAffected
Red Hat Enterprise Linux 8libsshFixedRHSA-2025:2197724.11.2025
Red Hat Enterprise Linux 8libsshFixedRHSA-2025:2197724.11.2025
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportlibsshFixedRHSA-2026:2434908.06.2026
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnlibsshFixedRHSA-2026:2434908.06.2026
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportlibsshFixedRHSA-2026:2591115.06.2026

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-682
https://bugzilla.redhat.com/show_bug.cgi?id=2369388libssh: Incorrect Return Code Handling in ssh_kdf() in libssh

EPSS

Процентиль: 33%
0.00407
Низкий

5 Medium

CVSS3

Связанные уязвимости

CVSS3: 5
ubuntu
около 1 года назад

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

CVSS3: 5
nvd
около 1 года назад

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

CVSS3: 5
msrc
около 1 года назад

Libssh: incorrect return code handling in ssh_kdf() in libssh

CVSS3: 5
debian
около 1 года назад

A flaw was found in libssh versions built with OpenSSL versions older ...

rocky
8 месяцев назад

Moderate: libssh security update

EPSS

Процентиль: 33%
0.00407
Низкий

5 Medium

CVSS3