CVE-2015-1340 json
chmod race in doUidshiftIntoContainer
published 2019-04-22 7 y ago modified 2026-06-17 4 mo ago also GHSA-8mpq-fmr3-6jxv , GO-2021-0071 , EUVD-2022-3203
- cvss
- 7.0
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/lxc/lxd 0.0.0-20151004155856-19c6961cc101
- Ubuntu LXD 0.19-0ubuntu5
- github.com/lxc/lxd@19c6961 commit
- github.com/lxc/lxd#1189 pull request
Exploit prediction
0.90% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.0 | CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.0 | 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/lxc/lxd | <0.0.0-20151004155856-19c6961cc101 |
0.0.0-20151004155856-19c6961cc101 |
Affected products
- Ubuntu LXD
Classification
- Weakness
-
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
References
-
github.com
/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4
web, patch, third-party-advisory
-
github.com
/lxc/lxd/pull/1189
web
-
nvd.nist.gov
/vuln/detail/CVE-2015-1340
advisory
-
bugs.launchpad.net
/ubuntu/+source/lxd/+bug/1502270
web
-
github.com
/lxc/lxd
package
-
pkg.go.dev
/vuln/GO-2021-0071
web
Sources
- CVE List CVE-2015-1340
- GitHub Advisory GHSA-8mpq-fmr3-6jxv
- NVD CVE-2015-1340
- OSV GO-2021-0071
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.