Summary
Vulnerability in libssh2 (CVE-2026-58050). Risk of unauthorized operations or information disclosure.
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
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
libssh2のバージョン1.11.1までに、攻撃者によって制御された32ビットの属性カウントをpublickey-subsystemレスポンスから読み取り、チェックなしでメモリを割り当てる際に使用する脆弱性があります。この結果、特に32ビットプラットフォームでアンダーサイズのバッファオーバーフローが発生する可能性があります。悪意のあるSSHサーバーがこのバッファオーバーフローを引き起こし、接続するlibssh2クライアントでヒープバッファオーバーフローを引き起こす可能性があります。
libssh2における整数オーバーフローの脆弱性
libssh2のバージョン1.11.1まで
32ビットプラットフォームでのバッファオーバーフローにより、攻撃者が任意のコードを実行する可能性がある。
libssh2の最新バージョンにアップデートし、境界チェックを追加することで修正する。
攻撃が可能な環境に対するSSH接続を制限する。
特に32ビットプラットフォームで動作するlibssh2を使用している場合、パッチ適用を確認する。
References
- advisory disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web nvd.nist.gov
- web github.com