CVE-2015-1340Linuxcontainers Lxd
High 8.1 No auth needed
Follow: this CVE · Linuxcontainers · Linuxcontainers Lxd We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.0
- 8.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- Apr 22, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-362
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Lxd.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/lxc/lxd |
< 0.0.0-20151004155856-19c6961cc101 |
0.0.0-20151004155856-19c6961cc101 |
go get github.com/lxc/lxd@v0.0.0-20151004155856-19c6961cc101 |
| Go | github.com/lxc/lxd |
< 0.0.0-20151004155856-19c6961cc101 |
0.0.0-20151004155856-19c6961cc101 |
go get github.com/lxc/lxd@v0.0.0-20151004155856-19c6961cc101 |
Per OSV / GitHub Advisories (GHSA-8mpq-fmr3-6jxv, GO-2021-0071). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linuxcontainers | lxd | all |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory