CVE-2019-10152: Github.com/containers/podman Path Traversal Vulnerability
HIGHCVE-2019-10152 is a HIGH (CVSS 7.2) path traversal vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Github.com/containers/podman libraries in the Go ecosystem. The issue involves podman path traversal vulnerability leads to arbitrary file read/write. Remediation is available by upgrading affected packages to version 1.4.0.
CVE-2019-10152 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2019-10152
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 1.4.0
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-2019-10152, 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 1.4.0), 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/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-2019-10152 Affected Github.com/containers/podman Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/containers/podman
|
Go |
< 1.4.0
|
1.4.0
|
References
Frequently Asked Questions
What is CVE-2019-10152?
Which Github.com/containers/podman versions are affected?
What version fixes CVE-2019-10152?
Is github.com/containers/podman affected?
What is the CVSS score of CVE-2019-10152?
What CWE is associated with CVE-2019-10152?
How can I check Go dependencies for CVE-2019-10152?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rh5f-2w6r-q7vj",
"modified" : "2023-08-25T21:29:12Z",
"published" : "2022-05-24T16:51:48Z",
"aliases" : [ "CVE-2019-10152" ],
"summary" : "Podman Path Traversal Vulnerability leads to arbitrary file read/write",
"details" : "A path traversal vulnerability has been discovered in podman before version 1.4.0 in the way it handles symlinks inside containers. An attacker who has compromised an existing container can cause arbitrary files on the host filesystem to be read/written when an administrator tries to copy a file from/to the container.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containers/podman"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10152"
}, {
"type" : "WEB",
"url" : "https://github.com/containers/libpod/issues/3211"
}, {
"type" : "WEB",
"url" : "https://github.com/containers/libpod/pull/3214"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10152"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/containers/libpod"
}, {
"type" : "WEB",
"url" : "https://github.com/containers/libpod/blob/master/RELEASE_NOTES.md#140"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00001.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-59" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-14T22:12:52Z",
"nvd_published_at" : "2019-07-30T23:15:00Z"
}
}