{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "4.12.0"
              },
              {
                "fixed": "5.0.7"
              },
              {
                "introduced": "5.1.0"
              },
              {
                "fixed": "5.21.5"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7b1f0b6acefa288398ead8dda48b046d7b2795a3"
            },
            {
              "fixed": "c5184be310b13a8be5d9a5f286bfa1c0c286716e"
            }
          ],
          "repo": "https://github.com/canonical/lxd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c3h3-89qf-jqm5"
  ],
  "database_specific": {
    "cna_assigner": "canonical",
    "cwe_ids": [
      "CWE-915"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34179.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "6.0.0"
          },
          {
            "fixed": "6.8.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "In Canonical LXD versions 4.12 through 6.7, the doCertificateUpdate function in lxd/certificates.go does not validate the Type field when handling PUT/PATCH requests to /1.0/certificates/{fingerprint} for restricted TLS certificate users, allowing a remote authenticated attacker to escalate privileges to cluster admin.",
  "id": "CVE-2026-34179",
  "modified": "2026-07-17T03:41:52.763889279Z",
  "published": "2026-04-09T09:22:14.693Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/canonical"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34179.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/canonical/lxd/security/advisories/GHSA-c3h3-89qf-jqm5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34179"
    },
    {
      "type": "FIX",
      "url": "https://github.com/canonical/lxd/pull/17936"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/canonical/lxd"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Update of type field in restricted TLS certificate allows privilege escalation to cluster admin"
}