Skip to content
Heist/ feed
Back to feed
Medium

python-asyncssh — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-54590

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.

Products
python-asyncssh
Affected versions
1.11.0-2, 1.11.1-1, 1.11.1-1ubuntu0.1~esm1, 1.11.1-1ubuntu0.1~esm2, 1.12.2-1, 1.12.2-1ubuntu0.1, 1.12.2-1ubuntu0.2, 1.2.0-1, 1.2.1-1, 1.3.0-1, 1.8.1-2, 2.10.1-2, 2.10.1-2ubuntu0.1, 2.10.1-2ubuntu0.1+esm1, 2.20.0-1, 2.21.1-1, 2.23.0-1, 2.5.0-1, 2.5.0-1ubuntu0.1, 2.5.0-1ubuntu0.1+esm1, 2.5.0-1ubuntu0.1~esm1
Fixed versions
Not specified
CVEs
CVE-2026-54590
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:46 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-54590

core-osv · Original source

Published 8 Jul 2026, 21:16 UTC

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.

osv:UBUNTU-CVE-2026-54590

python-asyncssh

Fixed versions: Not specified

python-asyncssh

Fixed versions: Not specified

python-asyncssh

Fixed versions: Not specified

python-asyncssh

Fixed versions: Not specified

python-asyncssh

Fixed versions: Not specified

python-asyncssh

Fixed versions: Not specified

python-asyncssh

Fixed versions: Not specified

python-asyncssh

Fixed versions: Not specified

Complete source record
{
  "id": "8051d17ed0ed1814cff6c92330d87c99d3d4d24de30cb82347b6d0686f4d5838",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-54590",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-54590",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-54590",
    "products": [
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.3.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.11.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.11.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.11.1-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.11.1-1ubuntu0.1~esm2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.12.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.12.2-1ubuntu0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.12.2-1ubuntu0.2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.5.0-1ubuntu0.1~esm1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.5.0-1ubuntu0.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.5.0-1ubuntu0.1+esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.10.1-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.10.1-2ubuntu0.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.10.1-2ubuntu0.1+esm1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.20.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.21.1-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.23.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-asyncssh",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.20.0-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.21.1-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-54590",
      "aliases": [
        "UBUNTU-CVE-2026-54590"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.2.0-1",
            "1.2.1-1",
            "1.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "1.3.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.8.1-2",
            "1.11.0-2",
            "1.11.1-1",
            "1.11.1-1ubuntu0.1~esm1",
            "1.11.1-1ubuntu0.1~esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "1.11.1-1ubuntu0.1~esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.12.2-1",
            "1.12.2-1ubuntu0.1",
            "1.12.2-1ubuntu0.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "1.12.2-1ubuntu0.2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "2.5.0-1",
            "2.5.0-1ubuntu0.1~esm1",
            "2.5.0-1ubuntu0.1",
            "2.5.0-1ubuntu0.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "2.5.0-1ubuntu0.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "2.10.1-2",
            "2.10.1-2ubuntu0.1",
            "2.10.1-2ubuntu0.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "2.10.1-2ubuntu0.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.20.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "2.20.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.21.1-1",
            "2.23.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "2.23.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-asyncssh",
            "purl": "pkg:deb/ubuntu/python-asyncssh?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.20.0-1",
            "2.21.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54590.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-asyncssh",
                "binary_version": "2.21.1-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:07.014298428Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-54590"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-54590",
        "https://www.cve.org/CVERecord?id=CVE-2026-54590",
        "https://github.com/ronf/asyncssh/commit/3d515ba9ba0cd9990d248bdf62bcf05d51261a88",
        "https://github.com/ronf/asyncssh/releases/tag/v2.23.1",
        "https://github.com/ronf/asyncssh/security/advisories/GHSA-qr67-gv47-xwwh"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-54590",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359315,
  "published_at": "2026-07-08T21:16:00+00:00"
}