Remote Code Execution Vulnerability in Docker (CVE-2014-6407)

docker.io Updated 02 Oct 2025

Summary

12/12/2014
N/A
Yes i
Unrated
Not published

CVE-2014-6407: Docker before 1.3.2 allows remote attackers to write to arbitrary files and execute arbitrary code via a (1) symlink or (2) hard link attack in an image archive in a (a) pull or (b) load operation. Affects docker.io versions < 1.3.2~dfsg1-1. Fixed in 1.3.2~dfsg1-1. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Docker is an open-source platform that automates the deployment of applications inside software containers. It allows developers to package applications with all their dependencies into a standardized unit for software development. The vulnerability in question affects Docker versions prior to 1.3.2, where improper handling of symlinks and hard links in image archives can lead to unauthorized file writes and code execution.

Vulnerability Detail

CVE-2014-6407 is a critical vulnerability that allows remote attackers to exploit Docker's image handling mechanisms. By leveraging symlink or hard link attacks during pull or load operations, an attacker can manipulate image archives to write to arbitrary files on the host system. This can lead to unauthorized code execution, potentially compromising the entire system. The vulnerability arises from insufficient validation of file paths in the image archive, making it a significant risk for users running affected versions of Docker.

How To Fix

Minimum fixed version

1.3.2~dfsg1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade docker.io

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

Workaround

As a temporary measure, users can limit the exposure of Docker by restricting access to the Docker daemon and avoiding the use of untrusted image archives. Additionally, consider running Docker in a secure environment where file system access is tightly controlled.

Conclusion

CVE-2014-6407 is a significant vulnerability in Docker that poses risks of unauthorized file access and code execution. Users are strongly advised to upgrade to version 1.3.2 or later to mitigate these risks. For those unable to upgrade immediately, implementing workarounds can help reduce exposure until a proper fix is applied.

See every vulnerability recorded for docker.io →

Share this vulnerability

FAQ

CVE-2014-6407 is a vulnerability in Docker that allows remote attackers to write to arbitrary files and execute code through symlink or hard link attacks.

Docker versions prior to 1.3.2 are affected by this vulnerability.

You can check your Docker version by running 'docker --version' in your terminal. If it is below 1.3.2, it is vulnerable.

If an immediate upgrade is not possible, restrict access to the Docker daemon and avoid using untrusted image archives as a temporary workaround.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json. Check your application for vulnerabilities at Vulert Scanner.

Related vulnerabilities

Recent vulnerabilities recorded for docker.io.

How To Fix

Minimum fixed version

1.3.2~dfsg1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade docker.io

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