CVE-2020-1726: Github.com/containers/podman Podman Has Files Or Directories Vulnerability

MODERATE
Advisory Identifier: GHSA-vmhj-p9hw-vgrf
CVSS 5.9
CWE-552
Published
Advisory Summary

CVE-2020-1726 is a MODERATE (CVSS 5.9) podman has files or directories vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Github.com/containers/podman libraries in the Go ecosystem. The issue involves podman has files or directories accessible to external parties. Remediation is available by upgrading affected packages to version 2.0.6.

CVE-2020-1726 at a Glance

CVE Identifier CVE-2020-1726
GHSA Identifier GHSA-vmhj-p9hw-vgrf
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product Github.com/containers/podman
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2020-1726

To remediate this vulnerability, upgrade all affected Github.com/containers/podman 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/containers/podman fixed: 2.0.6
Upgrade github.com/containers/podman to 2.0.6
github.com/containers/podman/v2 fixed: 2.0.6
Upgrade github.com/containers/podman/v2 to 2.0.6
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/containers/podman

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-1726, inspect your project dependencies for Github.com/containers/podman:

inspect dependencies for github.com/containers/podman

Analyze the terminal output to locate any version of Github.com/containers/podman in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.6), 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-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Github.com/containers/podman, 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

A flaw was discovered in Podman where it incorrectly allows containers when created to overwrite existing files in volumes, even if they are mounted as read-only. When a user runs a malicious container or a container based on a malicious image with an attached volume that is used for the first time, it is possible to trigger the flaw and overwrite files in the volume. This issue was introduced in version 1.6.0.

CVE-2020-1726 Affected Github.com/containers/podman Versions

2 component(s)
Fixed Versions:
2.0.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/containers/podman
Go
≥ 1.6.0
< 2.0.6
2.0.6
github.com/containers/podman/v2
Go
< 2.0.6
2.0.6

References

Frequently Asked Questions

What is CVE-2020-1726?
CVE-2020-1726 is a security vulnerability in Github.com/containers/podman involving Podman has Files or Directories Accessible to External Parties under CWE-552: Files or Directories Accessible to External Parties.
Which Github.com/containers/podman versions are affected?
Affected versions include releases prior to 2.0.6 across affected packages: github.com/containers/podman, github.com/containers/podman/v2.
What version fixes CVE-2020-1726?
Upgrading to 2.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/containers/podman affected?
Yes, github.com/containers/podman is affected in releases prior to 2.0.6. Upgrade your dependency to 2.0.6 or later.
Is github.com/containers/podman/v2 affected?
Yes, github.com/containers/podman/v2 is affected in releases prior to 2.0.6. Upgrade your dependency to 2.0.6 or later.
What is the CVSS score of CVE-2020-1726?
CVE-2020-1726 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2020-1726?
CVE-2020-1726 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check Go dependencies for CVE-2020-1726?
Run the dependency tree command: 'inspect dependencies for github.com/containers/podman'. 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-vmhj-p9hw-vgrf",
  "modified" : "2023-02-08T18:07:43Z",
  "published" : "2022-05-24T17:08:34Z",
  "aliases" : [ "CVE-2020-1726" ],
  "summary" : "Podman has Files or Directories Accessible to External Parties",
  "details" : "A flaw was discovered in Podman where it incorrectly allows containers when created to overwrite existing files in volumes, even if they are mounted as read-only. When a user runs a malicious container or a container based on a malicious image with an attached volume that is used for the first time, it is possible to trigger the flaw and overwrite files in the volume. This issue was introduced in version 1.6.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/containers/podman"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6.0"
      }, {
        "fixed" : "2.0.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/containers/podman/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1726"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/podman/commit/c140ecdc9b416ab4efd4d21d14acd63b6adbdd42"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0680"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:1650"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2020-1726"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1801152"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1726"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/containers/podman"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00097.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00103.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T18:07:43Z",
    "nvd_published_at" : "2020-02-11T20:15:00Z"
  }
}