CVE-2015-1340 | 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.

Published: 2019-04-22 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2015-1340 is rated Moderate Risk (45.9/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.32%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2015-1340

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-03-30 0.49% 0.32% -0.17%
2 2025-03-29 0.32% 0.49% +0.17%
3 2025-03-17 0.32%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2015-1340

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.0 3.0 HIGH
CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:P)
Hands-on access—USB, keyboard, opening the case—not something you do purely over the wire.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
0.4 6.0 [email protected]
8.1 3.0 HIGH
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.2 5.9 [email protected]
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2015-1340

GitHub Security Advisory for CVE-2015-1340

OS Trackers for CVE-2015-1340

vendor priority summary link
debian unimportant CVE-2015-1340 unimportant priority: Debian including 1 source packages (lxd), 2 status rows across 2 suites (bookworm, trixie): resolved 2. https://security-tracker.debian.org/tracker/CVE-2015-1340
ubuntu low CVE-2015-1340 low priority: Ubuntu including 1 source packages (lxd), 6 status rows across 6 suites (precise, trusty, upstream, vivid, wily, xenial): DNE 2, not-affected 2, ignored 1, needed 1. https://ubuntu.com/security/CVE-2015-1340

Affected software / configurations for CVE-2015-1340

Vendor Product Version Raw CPE
linuxcontainers lxd cpe:2.3:a:linuxcontainers:lxd:-:*:*:*:*:*:*:*

References for CVE-2015-1340

cvelogic Threat Intelligence