# CVE-2026-59846: Libssh: libssh: information disclosure via proxycommand %r username expansion

- Priority: **Routine**
- Reason: Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-21 · Modified: 2026-11-06
- Aliases: UBUNTU-CVE-2026-59846, DEBIAN-CVE-2026-59846, CGA-7j44-mggj-qxvm, CGA-h66h-f49m-6w24, CGA-mhq3-3c9m-hfhq, CGA-q7jw-x9qv-wxhh, CGA-r895-382c-x8mx, CGA-vp87-gjqp-23m8, ALPINE-CVE-2026-59846
- Record: https://cvemate.com/vulnerability/CVE-2026-59846 · JSON: https://cvemate.com/vulnerability/CVE-2026-59846/json

## Description

```text
A flaw was found in libssh. A malicious username expanded through %r in ProxyCommand handling can inject shell metacharacters, exposing environment variables and causing unintended shell behavior.
```

## Signals

- CVSS: 3.9 low (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.12%, percentile 2.015%, 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-59846>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2498179>
- <https://ubuntu.com/security/CVE-2026-59846>
- <https://www.cve.org/CVERecord?id=CVE-2026-59846>
- <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-59846.txt>
- <https://ubuntu.com/security/notices/USN-8699-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-59846>
- <https://security.alpinelinux.org/vuln/CVE-2026-59846>
- <https://ubuntu.com/security/notices/USN-9187-1>

---

Data as of 2026-12-05T03:09:08.338Z. 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
