{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.0.0"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9bf62f39ec3ba1a25d2faeea01b707410d73428d"
            },
            {
              "fixed": "3027fdffd3e57884487b7c46e5e669cfbc8becdf"
            }
          ],
          "repo": "https://github.com/openziti/ziti",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58165.json"
  },
  "details": "OpenZiti through 2.0.0, fixed in commit 3027fdf, contains a privilege escalation vulnerability that allows authenticated non-admin identities with fine-grained enrollment management permissions to create enrollments for any identity, including the default administrator, because the ApplyCreate function in controller/model/enrollment_manager.go verifies only that the target identity exists without performing authorization checks binding the caller to the target identity. Attackers can redeem the resulting one-time token through the unauthenticated client API enrollment endpoint to obtain a client certificate authenticating as the targeted admin identity, yielding full administrative control of the controller and the zero-trust overlay it manages.",
  "id": "CVE-2026-58165",
  "modified": "2026-07-08T05:38:11.731096842Z",
  "published": "2026-06-30T15:49:12.654Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58165.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58165"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/openziti-privilege-escalation-to-admin-via-unauthorized-enrollment-creation"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/openziti/ziti/pull/4013"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openziti/ziti/commit/3027fdffd3e57884487b7c46e5e669cfbc8becdf"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/openziti/ziti"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/openziti/ziti/issues/4010"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OpenZiti - Privilege Escalation to Admin via Unauthorized Enrollment Creation"
}