# lxd has a restricted TLS certificate privilege escalation when in PKI mode

Advisory record · `GHSA-jpmc-7p9c-4rxf`

- **Identifiers:** `GHSA-jpmc-7p9c-4rxf` · `CVE-2024-6219` · `GO-2024-3313`
- **State:** Confirmed
- **Severity:** CVSS 3.8 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-287](https://cwe.mitre.org/data/definitions/287.html) · [CWE-295](https://cwe.mitre.org/data/definitions/295.html)
- **Tags:** [Authentication bypass](https://agentprime.io/advisories/tag/auth-bypass.md) · [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 9 Dec 2024
- **Updated:** 26 Jun 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 9 Dec 2024, 22:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/canonical/lxd` (Go): affected `<0.0.0-20240403103450-0e7f2b5bf4d2`; fixed in `0.0.0-20240403103450-0e7f2b5bf4d2`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Restricted TLS client certificates in the Go package github.com/canonical/lxd are not enforced when LXD runs in PKI mode, which happens when a server.ca file is present in LXD_DIR at startup and core.trust_ca_certificates is false (its default). An attacker holding such a restricted certificate gets full access to LXD instead of the intended limits. The source gives no fixed version beyond the listed fix, so upgrade to 0.0.0-20240403103450-0e7f2b5bf4d2 or later. Users can also avoid the issue by enabling core.trust_ca_certificates, though that grants full access to all CA-signed clients.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 3.8 Low, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`, from CNA (canonical)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0016, the 4th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:06 UTC: First seen by agentprime
- 31 Oct 2026, 15:06 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-jpmc-7p9c-4rxf)

## Sources

- [GitHub Advisory Database: GHSA-jpmc-7p9c-4rxf](https://github.com/advisories/GHSA-jpmc-7p9c-4rxf)
- [OSV: GHSA-jpmc-7p9c-4rxf](https://osv.dev/vulnerability/GHSA-jpmc-7p9c-4rxf)
- <https://github.com/canonical/lxd/security/advisories/GHSA-jpmc-7p9c-4rxf>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6219>
- <https://github.com/canonical/lxd/pull/12313>
- <https://github.com/canonical/lxd/commit/5cdc9a35b9c51e981b1e70330bde0413ccacc7fd>
- <https://github.com/canonical/lxd>
- <https://pkg.go.dev/vuln/GO-2024-3313>
- <https://www.cve.org/CVERecord?id=CVE-2024-6219>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-jpmc-7p9c-4rxf>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jpmc-7p9c-4rxf/>. Everything for agents: <https://agentprime.io/llms.txt>.
