libssh2.orgのlibssh2における境界外読み取りに関する脆弱性
| Title |
libssh2.orgのlibssh2における境界外読み取りに関する脆弱性
|
| Summary |
libssh2 バージョン 1.11.1 まで(コミット 2dae302 で修正)には、src/sftp.c 内の sftp_symlink() 関数にアウト・オブ・バウンズのヒープ読み取り脆弱性が存在します。この脆弱性により、悪意のある SSH サーバーまたは中間者攻撃者が細工した SSH_FXP_NAME レスポンスを送信することで、ヒープメモリの内容を漏洩させたり、クラッシュを引き起こしたりする可能性があります。攻撃者は、SFTP の READLINK および REALPATH 操作に対する SSH_FXP_NAME レスポンスで、実際のパケットデータよりも大きな link_len 値を供給できます。その結果、memcpy 操作前に利用可能なパケットバッファサイズの検証が欠如しているため、target_len から 1 バイト引いた分までのヒープバッファがオーバーリードされます。
|
| Possible impacts |
・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution |
ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
June 18, 2026, midnight |
| Registration Date |
June 29, 2026, 11:22 a.m. |
| Last Update |
June 29, 2026, 11:22 a.m. |
|
CVSS3.0 : 警告
|
| Score |
6.5
|
| Vector |
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H |
Affected System
| libssh2.org |
|
libssh2 1.11.1 およびそれ以前
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年06月29日] 掲載 |
June 29, 2026, 11:22 a.m. |
NVD Vulnerability Information
CVE-2025-15661
| Summary |
libssh2 through 1.11.1, fixed in commit 2dae302, contains an out-of-bounds heap read vulnerability in the sftp_symlink() function in src/sftp.c that allows a malicious SSH server or man-in-the-middle attacker to disclose heap memory contents or cause a crash by sending a crafted SSH_FXP_NAME response. Attackers can supply a link_len value larger than the actual packet data in SSH_FXP_NAME responses for SFTP READLINK and REALPATH operations, triggering a heap buffer over-read of up to target_len minus one bytes due to the missing validation of available packet buffer size before the memcpy operation.
|
| Publication Date |
June 19, 2026, 6:16 a.m. |
| Registration Date |
June 27, 2026, 4:03 a.m. |
| Last Update |
June 26, 2026, 11:35 a.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:* |
|
1.11.1 |
|
|
Related information, measures and tools
Common Vulnerabilities List