{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.55.0"
                  },
                  {
                    "fixed": "0.65.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "43a46d67a80a7355fcd2fb25e7e00d79aec8184c"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.65.1",
                "range": [
                  {
                    "fixed": "b33092aad1e51c66258a12e8b83fc473a68d9d34"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "f6b9e6479664696db4cd9c507c6725c1ab7c8aeb"
            },
            {
              "fixed": "b33092aad1e51c66258a12e8b83fc473a68d9d34"
            },
            {
              "fixed": "43a46d67a80a7355fcd2fb25e7e00d79aec8184c"
            }
          ],
          "repo": "https://github.com/eugeny/russh",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9264-jvgf-6w2f"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-696",
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128087.json"
  },
  "details": "russh is a Rust SSH client and server library that includes an SSH agent protocol implementation. From version 0.55.0 until version 0.65.1, the initial key exchange invokes client::Handler::kex_done() with the raw shared secret before check_server_key() accepts the server host key or certificate. A malicious SSH server can therefore trigger application-defined secondary-channel initialization or early data handling even when the server identity is subsequently rejected. Ordinary clients that keep the callback's no-op default or independently defer callback-derived actions until trust is confirmed are not affected. This issue is fixed in version 0.65.1.",
  "id": "CVE-2026-128087",
  "modified": "2026-11-15T02:30:40.901679213Z",
  "published": "2026-11-13T19:03:26.702Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Eugeny/russh/releases/tag/v0.65.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128087.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Eugeny/russh/security/advisories/GHSA-9264-jvgf-6w2f"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-128087"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Eugeny/russh/commit/43a46d67a80a7355fcd2fb25e7e00d79aec8184c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Eugeny/russh/pull/808"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "russh kex_done: shared-secret callback runs before server host-key verification"
}