CVE-2015-1340: Race condition in github.com/lxc/lxd

github.com/lxc/lxd Updated 02 Oct 2025

Summary

14/04/2021
Yes i
High
8.1

CVE-2015-1340: Race condition in github.com/lxc/lxd. Affects github.com/lxc/lxd versions < 0.0.0-20151004155856-19c6961cc101. Fixed in 0.0.0-20151004155856-19c6961cc101. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

github.com/lxc/lxd is a Go package that provides a container hypervisor and manager. It allows users to create and manage system containers, providing a lightweight virtualization solution. The package is widely used in various applications and environments.

Vulnerability Detail

The vulnerability (CVE-2015-1340) in github.com/lxc/lxd is a race condition that occurs during a container filesystem shift. This race condition allows a user who can modify the filesystem to chmod an arbitrary path of their choice, instead of the expected path. This can lead to unauthorized access and potential privilege escalation within the container environment.

How To Fix

Minimum fixed version

0.0.0-20151004155856-19c6961cc101

This is the first release that contains the fix.

go get github.com/lxc/lxd@v0.0.0-20151004155856-19c6961cc101

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is advised to follow the recommended fix and update the package to the latest secure version.

Conclusion

The vulnerability in github.com/lxc/lxd can lead to unauthorized access and privilege escalation within container environments. It is crucial to update the package to the recommended secure version to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/lxc/lxd →

Share this vulnerability

FAQ

This vulnerability allows a user with filesystem modification privileges to chmod an arbitrary path within the container, potentially leading to unauthorized access and privilege escalation.

Users of applications or systems that utilize the github.com/lxc/lxd package are affected by this vulnerability if they are using a version prior to 0.0.0-20151004155856-19c6961cc101.

There is no known exploit available for this vulnerability at the moment. However, it is important to apply the recommended fix to prevent any potential exploitation.

The only effective mitigation is to update the github.com/lxc/lxd package to the recommended secure version. This will ensure that the race condition issue is resolved and the vulnerability is patched.

You can find more information about this vulnerability in the CVE-2015-1340 entry or the GHSA-8mpq-fmr3-6jxv advisory. Additionally, you can refer to the provided database-specific URLs for further details.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/lxc/lxd.

How To Fix

Minimum fixed version

0.0.0-20151004155856-19c6961cc101

This is the first release that contains the fix.

go get github.com/lxc/lxd@v0.0.0-20151004155856-19c6961cc101

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback