{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:libssh:libssh:0.12.0:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "0.12.0"
                  },
                  {
                    "last_affected": "0.12.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          "events": [
            {
              "introduced": "50313883f3a077458cde4ea95bf46bfeb0771b34"
            },
            {
              "last_affected": "50313883f3a077458cde4ea95bf46bfeb0771b34"
            }
          ],
          "repo": "https://gitlab.com/libssh/libssh-mirror",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.12.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59851.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "0:0.12.0-3.el10_2"
              },
              {
                "fixed": "0.12.1-4.hum1"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "InverseAffectedRanges"
          }
        ]
      }
    ]
  },
  "details": "A flaw was found in libssh. On servers with GSSAPIKeyExchange enabled, the gssapi-keyex path does not verify whether the authenticated Kerberos principal is authorized for the requested local user, allowing authenticated clients to log in as arbitrary users.",
  "id": "CVE-2026-59851",
  "modified": "2026-11-07T02:30:43.138866826Z",
  "published": "2026-07-21T14:20:47.001Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "WEB",
      "url": "https://catalog.redhat.com/software/containers/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:42922"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:55855"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-59851"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59851.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59851"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2498184"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Libssh: libssh: authentication bypass via missing gssapi principal check"
}