CVE-2020-1726: Github.com/containers/podman Podman Has Files Or Directories Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/containers/podman to 2.0.6
Upgrade github.com/containers/podman/v2 to 2.0.6
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
CVE-2020-1726 Affected Github.com/containers/podman Versions
2 component(s)| 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?
Which Github.com/containers/podman versions are affected?
What version fixes CVE-2020-1726?
Is github.com/containers/podman affected?
Is github.com/containers/podman/v2 affected?
What is the CVSS score of CVE-2020-1726?
What CWE is associated with CVE-2020-1726?
How can I check Go dependencies for CVE-2020-1726?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}