{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "19731a172894f7d82fbb69cb477f6f3c2103bf97"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "19731a172894f7d82fbb69cb477f6f3c2103bf97"
            }
          ],
          "repo": "https://github.com/ronf/asyncssh",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4hgp-7gmx-wvfg"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-287"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138376.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "1.13.1"
              },
              {
                "fixed": "2.24.2"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "1.13.1"
              },
              {
                "fixed": "2.24.2"
              }
            ],
            "source": "CPE_FIELD",
            "strategy": "CPEApplicability"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "1.13.1"
              },
              {
                "fixed": "2.24.2"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "AsyncSSH 1.13.1 before 2.24.2 contains an improper authentication vulnerability in SSHConnection._match_known_hosts that accumulates trusted client host keys across host-based authentication attempts on one connection. With trust_client_host enabled, attackers holding one known client host's private key can retry naming another known host and log in as users authorized only from that host.",
  "id": "CVE-2026-138376",
  "modified": "2026-11-29T14:45:37.733305659Z",
  "published": "2026-11-29T13:24:19.874Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138376.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ronf/asyncssh"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/connection.py#L1274-L1298"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ronf/asyncssh/commit/19731a172894f7d82fbb69cb477f6f3c2103bf97"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ronf/asyncssh/security/advisories/GHSA-4hgp-7gmx-wvfg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138376"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/asyncssh-1.13.1-before-2.24.2-improper-authentication-via-host-based-auth-key-carry-over"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "AsyncSSH 1.13.1 before 2.24.2 Improper Authentication via Host-Based Auth Key Carry-Over"
}