CVE-2025-5987 | Libssh: invalid return code for chacha20 poly1305 with openssl backend

A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.

公開: 2025-07-07 最終更新: 2026-06-30 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2025-5987 は中リスク(57/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 1.44%、70 パーセンタイル) 推奨対応: 影響資産を整理し、修補計画に組み込んでください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2025-5987 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 1.23% 1.44% +0.21%
2 2026-05-26 1.49% 1.23% -0.26%
3 2026-05-23 1.49%

EPSS の全履歴 (全 10 件)

CVE-2025-5987 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
8.1 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
2.2 5.9 [email protected]
8.1 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
2.2 5.9 [email protected]

CVE-2025-5987 の弱点分類(列挙)

CVE-2025-5987 の OS トラッカー

vendor priority summary link
alpine CVE-2025-5987: 1 source package rows (libssh); 6 state rows across 2 repos (3.22-community, edge-community); fixed 2, open 4. https://security.alpinelinux.org/vuln/CVE-2025-5987
debian unimportant CVE-2025-5987 unimportant priority: Debian including 1 source packages (libssh), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2025-5987
redhat medium https://access.redhat.com/security/cve/CVE-2025-5987
suse medium CVE-2025-5987 severity moderate: SUSE including 259 source package names (2.2.1-5.14:libssh-config-0.10.6-slfo.1.1_2.1, 2.2.1-5.14:libssh4-0.10.6-slfo.1.1_2.1, …), 462 product×package rows across 79 product lines (Container suse/sl-micro/6.1/baremetal-os-container, Container suse/sl-micro/6.1/base-os-container, … (79 product lines)): Known Affected 231, Known Not Affected 135, Fixed 96. https://www.suse.com/security/cve/CVE-2025-5987/
ubuntu medium CVE-2025-5987 medium priority: Ubuntu including 1 source packages (libssh), 8 status rows across 8 suites (bionic, focal, jammy, noble, oracular, plucky, upstream, xenial): not-affected 4, released 4. https://ubuntu.com/security/CVE-2025-5987

CVE-2025-5987 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
libssh libssh >= 0.10.0, < 0.11.2 cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*

CVE-2025-5987 の参考情報

URL タグ
https://access.redhat.com/errata/RHSA-2025:23483
https://access.redhat.com/errata/RHSA-2025:23484
https://access.redhat.com/errata/RHSA-2026:0427
https://access.redhat.com/errata/RHSA-2026:0428
https://access.redhat.com/errata/RHSA-2026:0430
https://access.redhat.com/errata/RHSA-2026:0431
https://access.redhat.com/errata/RHSA-2026:0702
https://access.redhat.com/errata/RHSA-2026:0978
https://access.redhat.com/errata/RHSA-2026:0980
https://access.redhat.com/errata/RHSA-2026:0985
https://access.redhat.com/errata/RHSA-2026:0996
https://access.redhat.com/errata/RHSA-2026:1539
https://access.redhat.com/errata/RHSA-2026:1541
https://access.redhat.com/errata/RHSA-2026:3415
https://access.redhat.com/security/cve/CVE-2025-5987 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2376219 Issue Tracking Third Party Advisory
https://www.libssh.org/security/advisories/CVE-2025-5987.txt
cvelogic Threat Intelligence