CVE-2015-5305: Github.com/kubernetes/kubernetes Path Traversal Vulnerability
MODERATECVE-2015-5305 is a MODERATE (CVSS 6.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Github.com/kubernetes/kubernetes libraries in the Go ecosystem. The issue involves directory traversal in kubernetes. Remediation is available by upgrading affected packages to version 1.1.1.
CVE-2015-5305 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L).
How to Fix CVE-2015-5305
To remediate this vulnerability, upgrade all affected Github.com/kubernetes/kubernetes 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/kubernetes/kubernetes to 1.1.1
Upgrade k8s.io/kubernetes to 1.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/kubernetes/kubernetes
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-5305, inspect your project dependencies for Github.com/kubernetes/kubernetes:
inspect dependencies for github.com/kubernetes/kubernetes
Analyze the terminal output to locate any version of Github.com/kubernetes/kubernetes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Github.com/kubernetes/kubernetes, 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-2015-5305 Affected Github.com/kubernetes/kubernetes Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/kubernetes/kubernetes
|
Go |
< 1.1.1
|
1.1.1
|
|
k8s.io/kubernetes
|
Go |
< 1.1.1
|
1.1.1
|
References
Frequently Asked Questions
What is CVE-2015-5305?
Which Github.com/kubernetes/kubernetes versions are affected?
What version fixes CVE-2015-5305?
Is github.com/kubernetes/kubernetes affected?
Is k8s.io/kubernetes affected?
What is the CVSS score of CVE-2015-5305?
What CWE is associated with CVE-2015-5305?
How can I check Go dependencies for CVE-2015-5305?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jp32-vmm6-3vf5",
"modified" : "2023-08-30T11:46:16Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2015-5305" ],
"summary" : "Directory Traversal in Kubernetes",
"details" : "Directory traversal vulnerability in Kubernetes, as used in Red Hat OpenShift Enterprise 3.0, allows attackers to write to arbitrary files via a crafted object type name, which is not properly handled before passing it to etcd.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kubernetes/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "k8s.io/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5305"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/pull/16381"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/commit/37f730f68c7f06e060f90714439bfb0dbb2df5e7"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/commit/68f2add9bd5d43b9da1424d87d88f83d120e17d0"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2015:1945"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2015-5305"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1273969"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kubernetes/kubernetes"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0701"
}, {
"type" : "WEB",
"url" : "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-5305"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-20T16:19:56Z",
"nvd_published_at" : "2015-11-06T18:59:00Z"
}
}