# CVE-2026-59850: Libssh: libssh: use-after-free via data callbacks on closed channels

- Severity: Medium 4.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- 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.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-07-21T14:15:58.793Z
- Modified: 2026-09-01T21:18:35.143Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A flaw was found in libssh. If data packets are processed after a channel is closed, channel data callbacks can be invoked after the associated data has already been freed, leading to crashes or possible use-after-free conditions.

(As written by CVE List.)

## Affected

- libssh: no versions given (not affected: from 0:0.12.0-3.el10_2 before *; from 0:0.9.6-17.el8_10 before *; from 0:0.10.4-19.el9_8 before *)
- libssh-main: no versions given (not affected: from 0.12.1-4.hum1 before *)
- libssh libssh: no versions given
- redhat hardened_images: no versions given
- redhat enterprise_linux: 8.0; 9.0; 10.0

## Every score

- redhat: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- 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://access.redhat.com/errata/RHSA-2026:42922> (issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:55855> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:62217> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:62218> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-59850> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2498183> (issue-tracking, vendor-advisory)

## Sources

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

---

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