# CVE-2026-58050: libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation

- Severity: High 8.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-28T01:32:53.582Z
- Modified: 2026-10-25T17:10:00.197Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- libssh2 libssh2: up to 1.11.1

## Every score

- VulnCheck: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- VulnCheck: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc> (exploit, broken-link, third-party-advisory)
- <https://github.com/libssh2/libssh2/blob/master/src/publickey.c> (product)
- <https://www.vulncheck.com/advisories/libssh2-integer-overflow-in-publickey-subsystem-attribute-allocation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-58050](https://www.cve.org/CVERecord?id=CVE-2026-58050), CVE Terms of Use, modified 2026-06-29
- NVD: [CVE-2026-58050](https://nvd.nist.gov/vuln/detail/CVE-2026-58050), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58050 · Whole record: https://cve.day/CVE-2026-58050.json · Rebuilt by cve.day 2026-11-25T22:59:26.567Z
