← Back to CVE Explorer

CVE-2026-34179

Full vulnerability record from the local CVENow database.

Description

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.

Severity
CRITICAL
CVSS score
9.1 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-04-09 10:16:21.963000
Last modified
2026-10-26 21:10:00.170000
View original CVE JSON
{
  "id": "CVE-2026-34179",
  "sourceIdentifier": "[email protected]",
  "published": "2026-04-09T10:16:21.963",
  "lastModified": "2026-10-26T21:10:00.170",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "En las versiones 4.12 a 6.7 de Canonical LXD, la función doCertificateUpdate en lxd/certificates.go no valida el campo Type al manejar solicitudes PUT/PATCH a /1.0/certificates/{fingerprint} para usuarios de certificados TLS restringidos, permitiendo a un atacante remoto autenticado escalar privilegios a administrador de clúster."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Canonical",
          "product": "lxd",
          "defaultStatus": "unaffected",
          "collectionURL": "https://github.com/canonical",
          "packageName": "lxd",
          "platforms": [
            "Linux"
          ],
          "programFiles": [
            "permissions.go"
          ],
          "repo": "https://github.com/canonical/lxd",
          "versions": [
            {
              "version": "4.12.0",
              "lessThan": "5.0.7",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "5.1.0",
              "lessThan": "5.21.5",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "6.0.0",
              "lessThan": "6.8.0",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
          "baseScore": 9.1,
          "baseSeverity": "CRITICAL",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "HIGH",
          "userInteraction": "NONE",
          "scope": "CHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 2.3,
        "impactScore": 6.0
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-04-09T11:54:14.860013Z",
          "id": "CVE-2026-34179",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-915"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "4.12",
              "versionEndIncluding": "5.0.6",
              "matchCriteriaId": "41A5CC7C-00BE-436D-957A-4636E52D0DF1"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "5.21.0",
              "versionEndIncluding": "5.21.4",
              "matchCriteriaId": "92A82DF4-3ED9-47E0-BDF1-DB9138EE0883"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "6.0",
              "versionEndIncluding": "6.7",
              "matchCriteriaId": "5C28FC63-0BE4-4B40-A87F-DF242AE33303"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/canonical/lxd/pull/17936",
      "source": "[email protected]",
      "tags": [
        "Issue Tracking",
        "Patch"
      ]
    },
    {
      "url": "https://github.com/canonical/lxd/security/advisories/GHSA-c3h3-89qf-jqm5",
      "source": "[email protected]",
      "tags": [
        "Exploit",
        "Third Party Advisory"
      ]
    },
    {
      "url": "https://github.com/canonical/lxd/security/advisories/GHSA-c3h3-89qf-jqm5",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "tags": [
        "Exploit",
        "Third Party Advisory"
      ]
    }
  ]
}