CVE-2015-1340
mediumpriority · track · 32EPSS 0.009 · 59 %ileEUUSEPSS · scored 2026-10-28
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.1
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-8mpq-fmr3-6jxvLXD vulnerable to Race Condition2022-05-24ghsa · osvUS
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. ### Specific Go Packages Affected github.com/lxc/lxd/shared
- GO-2021-0071Race condition in github.com/lxc/lxd2021-04-14vendor · osvUS
A race between chown and chmod operations during a container filesystem shift may allow a user who can modify the filesystem to chmod an arbitrary path of their choice, rather than the expected path.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (4)
External citations — patches, advisories, analysis.
- https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2015-1340cnnvd
- https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4enisa_euvd
- https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4PatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan