CVE-2015-3629: Github.com/docker/docker Arbitrary File Write Vulnerability

HIGH
Advisory Identifier: GHSA-g44j-7vp3-68cv
CVSS 8.4
CWE-59
Published
Advisory Summary

CVE-2015-3629 is a HIGH (CVSS 8.4) arbitrary file write vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Github.com/docker/docker libraries in the Go ecosystem. The issue involves arbitrary file write in libcontainer. Remediation is available by upgrading affected packages to version 1.6.1.

CVE-2015-3629 at a Glance

CVE Identifier CVE-2015-3629
GHSA Identifier GHSA-g44j-7vp3-68cv
Severity HIGH
CVSS v3.1 Base Score 8.4
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Github.com/docker/docker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2015-3629

To remediate this vulnerability, upgrade all affected Github.com/docker/docker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/docker/docker fixed: 1.6.1
Upgrade github.com/docker/docker to 1.6.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/docker/docker

How to Check if You Are Affected

To determine whether your application is affected by CVE-2015-3629, inspect your project dependencies for Github.com/docker/docker:

inspect dependencies for github.com/docker/docker

Analyze the terminal output to locate any version of Github.com/docker/docker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Github.com/docker/docker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Libcontainer 1.6.0, as used in Docker Engine, allows local users to escape containerization ("mount namespace breakout") and write to arbitrary file on the host system via a symlink attack in an image when respawning a container.

CVE-2015-3629 Affected Github.com/docker/docker Versions

1 component(s)
Fixed Versions:
1.6.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/docker/docker
Go
≥ 1.6.0
< 1.6.1
1.6.1

References

Frequently Asked Questions

What is CVE-2015-3629?
CVE-2015-3629 is a security vulnerability in Github.com/docker/docker involving Arbitrary File Write in Libcontainer under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Github.com/docker/docker versions are affected?
Affected versions include releases prior to 1.6.1 across affected packages: github.com/docker/docker.
What version fixes CVE-2015-3629?
Upgrading to 1.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/docker/docker affected?
Yes, github.com/docker/docker is affected in releases prior to 1.6.1. Upgrade your dependency to 1.6.1 or later.
What is the CVSS score of CVE-2015-3629?
CVE-2015-3629 has a CVSS v3.1 base score of 8.4 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-3629?
CVE-2015-3629 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.).
How can I check Go dependencies for CVE-2015-3629?
Run the dependency tree command: 'inspect dependencies for github.com/docker/docker'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g44j-7vp3-68cv",
  "modified" : "2024-02-02T15:59:34Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ "CVE-2015-3629" ],
  "summary" : "Arbitrary File Write in Libcontainer",
  "details" : "Libcontainer 1.6.0, as used in Docker Engine, allows local users to escape containerization (\"mount namespace breakout\") and write to arbitrary file on the host system via a symlink attack in an image when respawning a container.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/docker/docker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6.0"
      }, {
        "fixed" : "1.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-3629"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docker/docker/commit/d5ebb60bddbabea0439213501f4f6ed494b23cba"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!searchin/docker-user/1.6.1/docker-user/47GZrihtr-4/nwgeOOFLexIJ"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#%21searchin/docker-user/1.6.1/docker-user/47GZrihtr-4/nwgeOOFLexIJ"
  }, {
    "type" : "WEB",
    "url" : "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-3629"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2015-05/msg00023.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/131835/Docker-Privilege-Escalation-Information-Disclosure.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2015/May/28"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/74558"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-59" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-19T22:08:41Z",
    "nvd_published_at" : "2015-05-18T15:59:15Z"
  }
}