Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-58051— libssh2 - Free of Uninitialized Pointer in publickey List Cleanup

Quick assessment

Affected
libssh2 libssh2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

libssh2是libssh2团队开源的一款实现SSH2协议的客户端C库。 libssh2 1.11.1及之前版本存在资源管理错误漏洞,该漏洞源于使用SSH2_REALLOC扩展公钥列表时未对新条目进行零初始化,可能导致解析失败后清理路径操作未初始化的条目,使恶意SSH服务器能够利用格式错误的响应释放未初始化的、可被攻击者控制的attrs指针。

CVSS 6.5 · Medium EPSS 0.28% · P18

Affected Version Matrix 1

VendorProduct Version RangeStatus
libssh2 libssh2 ≤ 1.11.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-58051

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
libssh2 - Free of Uninitialized Pointer in publickey List Cleanup
Source: CVE Program / CVE List V5
Vulnerability Description
libssh2 through 1.11.1 grows its publickey list with SSH2_REALLOC but does not zero-initialize new entries before parsing populates them, so a parse failure reaching the cleanup path leaves libssh2_publickey_list_free operating on an uninitialized entry. A malicious SSH server offering the publickey subsystem can use a malformed response to make cleanup free an uninitialized, attacker-influenceable attrs pointer in a connecting libssh2 client.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对未经初始化资源的使用
Source: CVE Program / CVE List V5
Vulnerability Title
libssh2 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
libssh2是libssh2团队开源的一款实现SSH2协议的客户端C库。 libssh2 1.11.1及之前版本存在资源管理错误漏洞,该漏洞源于使用SSH2_REALLOC扩展公钥列表时未对新条目进行零初始化,可能导致解析失败后清理路径操作未初始化的条目,使恶意SSH服务器能够利用格式错误的响应释放未初始化的、可被攻击者控制的attrs指针。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
libssh2 libssh2 0 ~ 1.11.1 -

II. Public POCs for CVE-2026-58051

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-58051

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-58051 (1)

Proof of Concept for CVE-2026-58051 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-58051

No comments yet


Leave a comment