CVE-2026-58051
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedlibssh2 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceMemory safety vulnerability in libssh2's publickey list handling where SSH2_REALLOC does not zero-initialize new entries before parsing populates them. If parsing fails, libssh2_publickey_list_free operates on uninitialized entries, causing a use-after-free where cleanup frees an attacker-influenceable attrs pointer.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 1.11.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed libssh2 versionRun `pkg-config --modversion libssh2` on Linux, or check the binary/dylib metadata. On systems with dpkg: `dpkg -l | grep libssh2`. On RPM systems: `rpm -q libssh2`. If built from source, check the version header (typically src/libssh2.h or include/libssh2.h)Affected if The installed version is 1.11.1 or any earlier version (1.x series before the patch)
-
Identify applications using libssh2Run `ldconfig -p | grep libssh2` to list binaries linked against libssh2, or use `ldd <binary> | grep libssh2` on specific SSH client binaries that may use the libraryAffected if Any SSH client or application that uses libssh2 for connections is present and actively used
-
Determine if publickey authentication is in useReview SSH client configuration and logs to confirm if publickey-based authentication is enabled or if the remote server uses publickey subsystem. Check application code if using libssh2 directly to see if LIBSSH2_METHOD_KEX or publickey APIs are invokedAffected if Connections to untrusted SSH servers occur where publickey authentication or publickey subsystem feature is utilized
-
Check for active SSH sessions to untrusted serversMonitor network connections on port 22, or review SSH connection logs. If using applications that call libssh2_session_init, trace whether publickey-related functions like libssh2_userauth_list or libssh2_publickey_list are being invokedAffected if Active or frequent SSH connections to servers that are not fully trusted are being made using libssh2-based software
You are affected if libssh2 version 1.11.1 or earlier is installed AND the software using it makes SSH connections (particularly using publickey authentication or publickey listing features) to servers that could be untrusted or compromised.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate libssh2 to version beyond 1.11.1 when the patch is released. Until then, restrict SSH connections to trusted servers and consider disabling the publickey subsystem if possible.
libssh2 1.11.2 or later (check github.com/libssh2/libssh2/releases for the latest stable release)
- 1. Identify the current libssh2 version in use by checking your project's dependencies or running pkg-config --modversion libssh2
- 2. Navigate to the official libssh2 GitHub releases page at github.com/libssh2/libssh2/releases
- 3. Download the latest stable release (version 1.11.2 or later)
- 4. Rebuild your application or library that links against libssh2 with the updated version
- 5. Verify the upgrade was successful by confirming the new libssh2 version is loaded
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,536.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-58051 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-58051 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data