{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.0"
                  },
                  {
                    "fixed": "4.0.16"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "4.0"
                  },
                  {
                    "fixed": "5.0.12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "4.0"
                  },
                  {
                    "fixed": "5.21.10"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "4.0"
                  },
                  {
                    "fixed": "6.10.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "03aab09f5b5cbdada00c6539877dcf5932fcde98"
            },
            {
              "fixed": "98f2cf54c4fc40ce174389c08f5e090ccf7dfc0c"
            },
            {
              "fixed": "841eaecebdaf92b9cbc50b8ff17b74cf51dacfd6"
            },
            {
              "fixed": "b3fa441f079bbbeba7151737bc961f72d3181a78"
            },
            {
              "fixed": "c068355d4c7cb85956403e748265ecd055c8a068"
            }
          ],
          "repo": "https://github.com/canonical/lxd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5jh2-v77p-jr6q"
  ],
  "database_specific": {
    "cna_assigner": "canonical",
    "cwe_ids": [
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140086.json"
  },
  "details": "Improper link resolution before file access in the lxc image export command in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows the operator of a malicious public image remote to overwrite files writable by the invoking user, up to executing attacker-chosen commands as that user by replacing a shell startup file, via a one-character remote-supplied image fingerprint that the client accepts with a SHA-256 prefix check and uses as the default export output path, which follows local symlinks planted in the working directory.",
  "id": "CVE-2026-140086",
  "modified": "2026-12-01T22:45:46.690123193Z",
  "published": "2026-12-01T21:01:58.163Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140086.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/canonical/lxd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/canonical/lxd/security/advisories/GHSA-5jh2-v77p-jr6q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140086"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "lxd: Improper link resolution before file access in lxc image export"
}