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

Published Jul 8, 2026
·
Updated

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.settokens that blocks /, , and .. before %u substitution in AuthorizedKeysFile but does not block a leading ~ or ${ENV}, allowing later expansion in expandval and Path(filename).expanduser() to escape the intended authorized-keys directory. This issue is fixed in version 2.23.1.

Affected Software

1 affected component
AsyncSSH AsyncSSH>=2.23.0<2.23.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade AsyncSSH to a version that resolves this vulnerability.

    Fixed in 2.23.1

Event History

Jul 8, 2026
CVE Published
via MITRE·08:36 PM
Data Sourced
via MITRE·08:36 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-54590?

CVE-2026-54590 has a medium severity level rated at 5.9.

2

How does CVE-2026-54590 affect AsyncSSH?

CVE-2026-54590 allows username substitution bypass through environment expansion, potentially leading to security risks.

3

What are the implications of CVE-2026-54590 in software security?

CVE-2026-54590 could enable unauthorized access under certain conditions due to incomplete mitigations.

4

How do I fix CVE-2026-54590?

To fix CVE-2026-54590, update to AsyncSSH version 2.23.1 or higher which addresses the vulnerability.

5

What is the primary vulnerability type for CVE-2026-54590?

The primary vulnerability type for CVE-2026-54590 is path traversal.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203