CVE-2026-102643: AsyncSSH: SFTPServer Chroot Escape

Published Nov 9, 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. Prior to 2.24.1, SFTPServer.mappath() uses posixpath.normpath() on a client-supplied path and removes only one leading slash before passing the result to posixpath.join() with the configured chroot. An authenticated SFTP user can supply a path beginning with exactly two slash characters, causing POSIX normalization to preserve the double-leading-slash form and the subsequent join to treat the remaining pathname as absolute. This bypasses the SFTP chroot and permits reads and writes with the operating-system permissions of the account running the server, which may enable code execution depending on writable targets. This issue is fixed in version 2.24.1.

Affected Software

1 affected component
pypi/asyncssh<2.24.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.24.1

Event History

Nov 9, 2026
CVE Published
via MITRE·09:51 PM
Data Sourced
via MITRE·09:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated SFTP user can exploit it. The impact is limited by the operating-system permissions of the account running the AsyncSSH server, but those permissions may allow reads, writes, or potentially code execution through writable targets.

2

What path input triggers the chroot bypass?

The attacker must provide a client-supplied SFTP path beginning with exactly two slash characters. POSIX normalization preserves that double-leading-slash form, allowing the later path join to treat the remaining path as absolute.

3

Are deployments using the SFTP chroot configuration affected by default?

Affected AsyncSSH versions prior to 2.24.1 are vulnerable when using SFTPServer.map_path() with a configured chroot. The issue bypasses that chroot rather than requiring the attacker to escape it through filesystem traversal sequences.

4

How can this be remediated?

Upgrade AsyncSSH to version 2.24.1, which fixes the issue. If immediate patching is not possible, restrict SFTP access to trusted authenticated users and ensure the server process runs under an account with minimal filesystem permissions.

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