{"cve":"CVE-2015-1340","nvd":{"published":"2019-04-22T16:29:00.897","modified":"2026-06-17T00:22:13.613","status":"Modified","description":"LXD before version 0.19-0ubuntu5 doUidshiftIntoContainer() has an unsafe Chmod() call that races against the stat in the Filepath.Walk() function. A symbolic link created in that window could cause any file on the system to have any mode of the attacker's choice.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1},"cwes":["CWE-362"],"references":["https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4","https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4"],"products":["linuxcontainers:lxd"],"source":"nvd","synced_at":"2026-10-19T20:56:19.218283075+00:00"},"epss":{"cve":"CVE-2015-1340","score":0.00896,"percentile":0.59573,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8mpq-fmr3-6jxv","url":"https://osv.dev/vulnerability/GHSA-8mpq-fmr3-6jxv","summary":"LXD vulnerable to Race Condition","modified":"2023-11-08T03:57:49.708284Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","ranges":["<0.0.0-20151004155856-19c6961cc101"],"fixed":["0.0.0-20151004155856-19c6961cc101"]}]},{"id":"GO-2021-0071","url":"https://osv.dev/vulnerability/GO-2021-0071","summary":"Race condition in github.com/lxc/lxd","modified":"2024-06-03T20:51:31Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","ranges":["<0.0.0-20151004155856-19c6961cc101"],"fixed":["0.0.0-20151004155856-19c6961cc101"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}