CVE-2015-1340
HIGH 8.1CVSS 3.0LXD vulnerable to Race Condition
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.
- Published
- 22 Apr 2019
- Last modified
- 17 Jun 2026
- Assigned by
- security@ubuntu.com
- NVD status
- Modified
- Weakness
- CWE-362
- Also known as
- GHSA-8mpq-fmr3-6jxvGO-2021-0071
- Sources
- NVDJSONOSV GHSA-8mpq-fmr3-6jxvJSONOSV GO-2021-0071JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@ubuntu.com (Secondary) | CVSS 3.0 | HIGH 7.0 | CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxcontainers | lxdcpe:2.3:a:linuxcontainers:lxd:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Go | github.com/lxc/lxd | < 0.0.0-20151004155856-19c6961cc101 | 0.0.0-20151004155856-19c6961cc101 |
References
- https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4 · Patch, Third Party Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2015-1340 · ADVISORY
- https://github.com/lxc/lxd/pull/1189 · WEB
- https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1502270 · WEB
- https://github.com/lxc/lxd · PACKAGE
- https://pkg.go.dev/vuln/GO-2021-0071 · WEB
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 22 Apr 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)