Vulnerabilities in pkg:gem/hub
PACKAGECVE-2014-0177 is a MODERATE (CVSS 4.4) hub package arbitrary file overwrite vulnerability (CWE-377: Insecure Temporary File) affecting Github.com/github/hub libraries in the Go ecosystem. The issue involves hub package arbitrary file overwrite. Remediation is available by upgrading affected packages to version 1.12.1.
pkg:gem/hub
Vulnerability advisories affecting package pkg:gem/hub. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-x5m6-jh4r-34mv | CVE-2014-0177 | MODERATE | Hub Package Arbitrary File Overwrite |
CVE-2014-0177 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L).
How to Fix CVE-2014-0177
To remediate this vulnerability, upgrade all affected Github.com/github/hub 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/github/hub to 1.12.1
Upgrade hub to 1.12.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/github/hub
How to Check if You Are Affected
To determine whether your application is affected by CVE-2014-0177, inspect your project dependencies for Github.com/github/hub:
inspect dependencies for github.com/github/hub
Analyze the terminal output to locate any version of Github.com/github/hub in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.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-377: Insecure Temporary File, where creating and using insecure temporary files can leave application and system data vulnerable to attack. In Github.com/github/hub, 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-2014-0177 Affected Github.com/github/hub Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/github/hub
|
Go |
< 1.12.1
|
1.12.1
|
|
hub
|
RubyGems |
< 1.12.1
|
1.12.1
|
References
Frequently Asked Questions
What is CVE-2014-0177?
Which Github.com/github/hub versions are affected?
What version fixes CVE-2014-0177?
Is github.com/github/hub affected?
Is hub affected?
What is the CVSS score of CVE-2014-0177?
What CWE is associated with CVE-2014-0177?
How can I check Go dependencies for CVE-2014-0177?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x5m6-jh4r-34mv",
"modified" : "2023-07-05T20:53:41Z",
"published" : "2022-02-15T01:07:53Z",
"aliases" : [ "CVE-2014-0177" ],
"summary" : "Hub Package Arbitrary File Overwrite",
"details" : "The `am` function in `lib/hub/commands.rb` in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/github/hub"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "hub"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-0177"
}, {
"type" : "WEB",
"url" : "https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600"
}, {
"type" : "WEB",
"url" : "https://github.com/mislav/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mislav/hub"
}, {
"type" : "WEB",
"url" : "https://github.com/mislav/hub/releases/tag/v1.12.1"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/hub/CVE-2014-0177.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-377" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-20T20:32:04Z",
"nvd_published_at" : "2014-05-27T14:55:10Z"
}
}