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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-21 · Modified: 2026-09-01
- Aliases: UBUNTU-CVE-2026-59850, DEBIAN-CVE-2026-59850, CGA-4m5f-rqjr-74xp, CGA-f732-77xp-7m5q, CGA-gmgf-r297-9ccc, CGA-jwvw-3jpg-chm5, CGA-m4xc-67vv-fcg3, CGA-pv6j-c5pw-mwh9, ALPINE-CVE-2026-59850
- Record: https://cvemate.com/vulnerability/CVE-2026-59850 · JSON: https://cvemate.com/vulnerability/CVE-2026-59850/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.346%, percentile 30.119%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libssh (Alpine Linux): \< 0.12.1-r0
- chainguard libssh (Chainguard): \< 0.12.1-r0
- chainguard libssh-dev (Chainguard): \< 0.12.1-r0
- chainguard libssh2 (Chainguard): All versions (No fix recorded)
- wolfi libssh (Wolfi): \< 0.12.1-r0
- wolfi libssh-dev (Wolfi): \< 0.12.1-r0
- wolfi libssh2 (Wolfi): All versions (No fix recorded)
- debian libssh (Debian): All versions (No fix recorded) \| \< 0.10.6-0+deb12u3 \| \< 0.11.5-0+deb13u1 \| \< 0.12.1-1
- ubuntu libssh (Ubuntu): All versions (No fix recorded) \| \< 0.6.3-4.3ubuntu0.6+esm6 \| \< 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm8 \| \< 0.9.3-2ubuntu2.5+esm5 \| \< 0.9.6-2ubuntu0.22.04.8 \| \< 0.10.6-2ubuntu0.5 \| \< 0.11.3-1ubuntu2.1
- libssh libssh: na
- redhat enterprise\_linux: 8.0 \| 9.0 \| 10.0
- redhat hardened\_images: na

## References

- <https://access.redhat.com/errata/RHSA-2026:42922>
- <https://access.redhat.com/errata/RHSA-2026:55855>
- <https://access.redhat.com/errata/RHSA-2026:62217>
- <https://access.redhat.com/errata/RHSA-2026:62218>
- <https://access.redhat.com/security/cve/CVE-2026-59850>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2498183>
- <https://ubuntu.com/security/CVE-2026-59850>
- <https://www.cve.org/CVERecord?id=CVE-2026-59850>
- <https://www.libssh.org/2026/07/21/libssh-0-12-1-and-0-11-5-security-releases/>
- <https://www.libssh.org/security/advisories/CVE-2026-59850.txt>
- <https://ubuntu.com/security/notices/USN-8699-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-59850>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59850>
- <https://security.alpinelinux.org/vuln/CVE-2026-59850>
- <https://ubuntu.com/security/notices/USN-9187-1>

---

Data as of 2026-12-05T03:10:18.024Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
