# CVE-2026-54590: AsyncSSH AuthorizedKeysFile username substitution bypass through ~ and environment expansion

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A: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.34%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T20:36:45.258Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-qr67-gv47-xwwh, PYSEC-2026-3809
- Weaknesses: CWE-22, CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

AsyncSSH is a Python package which provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework. Version 2.23.0 contains an incomplete fix for CVE-2026-45309 in SSHServerConfig._set_tokens that blocks /, , and .. before %u substitution in AuthorizedKeysFile but does not block a leading ~ or ${ENV}, allowing later expansion in _expand_val and Path(filename).expanduser() to escape the intended authorized-keys directory. This issue is fixed in version 2.23.1.

(As written by CVE List.)

## Affected

- ronf asyncssh: < 2.23.1
- asyncssh (PyPI): before 2.23.1

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/ronf/asyncssh/security/advisories/GHSA-qr67-gv47-xwwh> (exploit, web)
- <https://github.com/ronf/asyncssh/commit/3d515ba9ba0cd9990d248bdf62bcf05d51261a88> (web)
- <https://github.com/ronf/asyncssh/releases/tag/v2.23.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54590> (advisory)
- <https://github.com/ronf/asyncssh> (package)
- <https://pypi.org/project/asyncssh> (package)
- <https://github.com/advisories/GHSA-qr67-gv47-xwwh> (advisory)

## Sources

- CVE List: [CVE-2026-54590](https://www.cve.org/CVERecord?id=CVE-2026-54590), CVE Terms of Use, modified 2026-07-10
- GitHub Advisory Database: [GHSA-qr67-gv47-xwwh](https://github.com/advisories/GHSA-qr67-gv47-xwwh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54590](https://nvd.nist.gov/vuln/detail/CVE-2026-54590), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-3809](https://osv.dev/vulnerability/PYSEC-2026-3809), CC-BY-4.0, modified 2026-09-10

---

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