{"id":"GHSA-8mpq-fmr3-6jxv","summary":"LXD vulnerable to Race Condition","details":"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.\n\n### Specific Go Packages Affected\ngithub.com/lxc/lxd/shared","aliases":["CVE-2015-1340","GO-2021-0071"],"modified":"2023-11-08T03:57:49.708284Z","published":"2022-05-24T16:44:07Z","database_specific":{"nvd_published_at":"2019-04-22T16:29:00Z","severity":"HIGH","cwe_ids":["CWE-362"],"github_reviewed_at":"2023-02-07T22:39:10Z","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1340"},{"type":"WEB","url":"https://github.com/lxc/lxd/pull/1189"},{"type":"WEB","url":"https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4"},{"type":"WEB","url":"https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1502270"},{"type":"PACKAGE","url":"https://github.com/lxc/lxd"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2021-0071"}],"affected":[{"package":{"name":"github.com/lxc/lxd","ecosystem":"Go","purl":"pkg:golang/github.com/lxc/lxd"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20151004155856-19c6961cc101"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-8mpq-fmr3-6jxv/GHSA-8mpq-fmr3-6jxv.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}