PT-2017-12814 · Joey Hess · Git-Annex
Published
2017-08-20
·
Updated
2025-11-14
·
CVE-2017-12976
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
git-annex versions prior to 6.20170818
Description
The issue allows for command injection via malicious SSH hostname. An attacker could trick a victim into adding a remote repository with a specially crafted URL, such as
ssh://-eProxyCommand=evil/blah, potentially leading to arbitrary local code execution. The attacker could also embed the malicious URL in the git-annex branch using initremote and have the victim enable it with enableremote.Recommendations
For versions prior to 6.20170818, update to version 6.20170818 or later to resolve the issue. As a temporary workaround, consider avoiding the use of
initremote with SSH remotes and restricting the addition of new remote repositories to trusted sources.Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Git-Annex