{"answers":{"affected":"3 open source packages ship an affected version, including asyncssh. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45309 exists.","fix":"Upgrade asyncssh to 2.23.0 or later.","what":"CVE-2026-45309 is a high-severity path traversal vulnerability in ronf asyncssh, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-45309 and fix it if it is affected.\n\nWhat it is: CVE-2026-45309 is a high-severity path traversal vulnerability in ronf asyncssh, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45309 exists.\n\nAffected packages and fixed versions:\n- asyncssh (PyPI): affected from 2.22.0; fixed in 2.23.0\n- asyncssh (PyPI): affected from 2.22.0; fixed in 2.23.0\n- asyncssh (PyPI): affected from 2.22.0; fixed in 2.23.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-45309/ (Markdown: https://insights.sbomify.com/CVE-2026-45309/index.md)","id":"CVE-2026-45309","markdown":"https://insights.sbomify.com/CVE-2026-45309/index.md","name":"CVE-2026-45309","record":{"aliases":["CLEANSTART-2026-UM40247","CLEANSTART-2026-WV96741","DEBIAN-CVE-2026-45309","ECHO-478b-8ec8-3dc3","GHSA-g794-3fmp-753h","MINI-4ggg-6rv9-j647","MINI-grhq-q2c4-v2w7","PYSEC-2026-2384","UBUNTU-CVE-2026-45309","openSUSE-SU-2026:11042-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Python SSH library","requires_auth":"none","summary":"Attackers can authenticate using arbitrary key files via path traversal in AsyncSSH when AuthorizedKeysFile uses the %u token.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"asyncssh","vendor":"asyncssh_project"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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. Prior to 2.23.0, AsyncSSH expands the OpenSSH-compatible AuthorizedKeysFile %u token in asyncssh/config.py, asyncssh/connection.py, asyncssh/auth_keys.py, and asyncssh/misc.py with the raw SSH username during pre-authentication server config reload, allowing a server configured with AuthorizedKeysFile authorized_keys/%u to read an authorized-keys file outside the intended directory when the SSH username contains /, \\, or .. path traversal segments and authenticate with an attacker-selected key file. This issue is fixed in version 2.23.0.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"AsyncSSH `AuthorizedKeysFile %u` path traversal allows attacker-selected authorized keys to authenticate a traversal username","id":"CVE-2026-45309","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":3,"next":{"headline":"CodeWhale: SSRF via HTTP Redirect Bypass in fetch_url Tool","id":"CVE-2026-45310"},"packages":[{"ecosystem":"PyPI","fixed":["2.23.0"],"introduced":["2.22.0"],"last_affected":[],"package":"asyncssh","purl":null,"source":"GHSA-g794-3fmp-753h"},{"ecosystem":"PyPI","fixed":["2.23.0"],"introduced":["2.22.0"],"last_affected":[],"package":"asyncssh","purl":"pkg:pypi/asyncssh","source":"GHSA-g794-3fmp-753h"},{"ecosystem":"PyPI","fixed":["2.23.0"],"introduced":["2.22.0"],"last_affected":[],"package":"asyncssh","purl":"pkg:pypi/asyncssh","source":"PYSEC-2026-2384"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.23.1-1.1"],"introduced":["0"],"last_affected":[],"package":"python-asyncssh","purl":"pkg:rpm/opensuse/python-asyncssh\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11042-1"}],"prev":{"headline":"Speakr: Open redirect in is_safe_url via parser mismatch on next parameter","id":"CVE-2026-45307"},"products":["asyncssh"],"published":"2026-07-17","related":[{"cvss_score":9.8,"headline":"AsyncSSH SSH Server Authentication Bypass","id":"CVE-2018-7749","kev_date_added":null,"published":"2018-03-12"},{"cvss_score":6.8,"headline":"AsyncSSH Rogue Session Attack","id":"CVE-2023-46446","kev_date_added":null,"published":"2023-11-14"},{"cvss_score":5.9,"headline":"AsyncSSH Rogue Extension Negotiation","id":"CVE-2023-46445","kev_date_added":null,"published":"2023-11-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-21","vendors":["ronf"]},"summary":"Attackers can authenticate using arbitrary key files via path traversal in AsyncSSH when AuthorizedKeysFile uses the %u token.","url":"https://insights.sbomify.com/CVE-2026-45309/"}