Every CVESearch/Get API key

CVE-2015-1340

chmod race in doUidshiftIntoContainer

7.0 HighFix available

CVE-2015-1340 is a high vulnerability (CVSS 7.0) in Canonical Lxd, published April 22, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.90%, the 60th percentile. Fixed in github.com/lxc/lxd 0.0.0-20151004155856-19c6961cc101.

What does this mean?
Severity
7.0 HighCVSS 3.0, CVE List
Exploit chance
0.90%EPSS, 60th percentile
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
0.0.0-20151004155856-19c6961cc101github.com/lxc/lxd

Description

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.

Attack profile

How easy it is to exploit

Attack vector
Physical
Complexity
High
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.90%Unchanged since Feb 4, 2022
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/lxc/lxd
Go
before 0.0.0-20151004155856-19c6961cc101
0.0.0-20151004155856-19c6961cc101

What each source reports

CVE List Score used7.0

chmod race in doUidshiftIntoContainer

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.

Record
CVE-2015-1340
CVSS 3.0
7.0 HighCVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Updated
2026-11-02
EUVDEUVD-2022-32037.0

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.

Record
EUVD-2022-3203
CVSS 3.0
7.0 HighCVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-8mpq-fmr3-6jxv8.1

LXD 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.

Specific Go Packages Affected

github.com/lxc/lxd/shared

Record
GHSA-8mpq-fmr3-6jxv
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-362
Updated
2026-11-02
NVD7.0

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.

Record
CVE-2015-1340
CVSS 3.0
7.0 HighCVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-362
Updated
2026-11-02
OSVGHSA-8mpq-fmr3-6jxv8.1

LXD 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.

Specific Go Packages Affected

github.com/lxc/lxd/shared

Record
GHSA-8mpq-fmr3-6jxv
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-362
Updated
2026-11-02
OSVGO-2021-0071No score

Race condition in github.com/lxc/lxd

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.

Record
GO-2021-0071
Updated
2026-11-02

History

History
RecordedChangedSources
facts
aliases, products, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

MoveEnter Open