---
cve: "CVE-2026-58051"
severity: "HIGH"
cvss: 8.3
epss: "44%"
vendor: "libssh2"
kev: false
exploited: false
published: "2026-06-28 02:16:32"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-04T01:54:50+02:00"
---

# CVE-2026-58051

> 8.3 HIGH · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Hoch | good |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |

## Referenzen

- <https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc>
- <https://github.com/libssh2/libssh2/blob/master/src/publickey.c>
- <https://www.vulncheck.com/advisories/libssh2-free-of-uninitialized-pointer-in-publickey-list-cleanup>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-58051) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
