Skip to content

Hub Package Arbitrary File Overwrite

Moderate severity GitHub Reviewed Published Feb 15, 2022 to the GitHub Advisory Database • Updated Nov 8, 2023

Package

gomod github.com/github/hub (Go)

Affected versions

< 1.12.1

Patched versions

1.12.1
bundler hub (RubyGems)
< 1.12.1
1.12.1

Description

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.

References

Published by the National Vulnerability Database May 27, 2014
Reviewed May 20, 2021
Published to the GitHub Advisory Database Feb 15, 2022
Last updated Nov 8, 2023

Severity

Moderate
4.4
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Weaknesses

CVE ID

CVE-2014-0177

GHSA ID

GHSA-x5m6-jh4r-34mv

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.