Skip to content

Vulnerability in libssh2

CVE-2026-58050 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

悪意のあるSSHサーバーに接続すると、libssh2のクライアントでヒープバッファオーバーフローが起き、任意のコードを実行される可能性があります。影響は1.11.1までのlibssh2で、特に32ビット環境で問題になります。修正版の有無については最新の情報を確認してください。

What is the problem

libssh2における整数オーバーフローの脆弱性

Affected scope

libssh2のバージョン1.11.1まで

Severity

32ビットプラットフォームでのバッファオーバーフローにより、攻撃者が任意のコードを実行する可能性がある。

How to fix

libssh2の最新バージョンにアップデートし、境界チェックを追加することで修正する。

Workaround

攻撃が可能な環境に対するSSH接続を制限する。

Detection

特に32ビットプラットフォームで動作するlibssh2を使用している場合、パッチ適用を確認する。

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation num_attrs * sizeof(libssh2_publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details