Vulnerabilities > CVE-2017-12836
Attack vector
NETWORK Attack complexity
HIGH Privileges required
NONE Confidentiality impact
HIGH Integrity impact
HIGH Availability impact
HIGH Summary
CVS 1.12.x, when configured to use SSH for remote repositories, might allow remote attackers to execute arbitrary code via a repository URL with a crafted hostname, as demonstrated by "-oProxyCommand=id;localhost:/bar."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 10 | |
OS | 3 | |
OS | 2 |
Nessus
NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-3399-1.NASL description Hank Leininger discovered that cvs did not properly handle SSH for remote repositories. A remote attacker could use this to construct a cvs repository that when accessed could run arbitrary code with the privileges of the user. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 102680 published 2017-08-22 reporter Ubuntu Security Notice (C) 2017-2019 Canonical, Inc. / NASL script (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/102680 title Ubuntu 14.04 LTS / 16.04 LTS / 17.04 : cvs vulnerability (USN-3399-1) NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_D9FE59EA194011E89EB85404A68AD561.NASL description Hank Leininger reports : Bugs in Git, Subversion, and Mercurial were just announced and patched which allowed arbitrary local command execution if a malicious name was used for the remote server, such as starting with - to pass options to the ssh client : git clone ssh://-oProxyCommand=some-command... CVS has a similar problem with the -d option : Tested vanilla CVS 1.12.13, and Gentoo CVS 1.12.12-r11. last seen 2020-06-01 modified 2020-06-02 plugin id 106996 published 2018-02-26 reporter This script is Copyright (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/106996 title FreeBSD : cvs -- Remote code execution via ssh command injection (d9fe59ea-1940-11e8-9eb8-5404a68ad561) NASL family SuSE Local Security Checks NASL id SUSE_SU-2017-2419-1.NASL description This update for cvs fixes the following issues : - CVE-2017-12836: A leading dash in the argument of the last seen 2020-06-01 modified 2020-06-02 plugin id 103176 published 2017-09-13 reporter This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/103176 title SUSE SLED12 / SLES12 Security Update : cvs (SUSE-SU-2017:2419-1) NASL family SuSE Local Security Checks NASL id SUSE_SU-2017-2422-1.NASL description This update for cvs fixes the following issues : - CVE-2017-12836: A leading dash in the argument of the last seen 2020-06-01 modified 2020-06-02 plugin id 103178 published 2017-09-13 reporter This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/103178 title SUSE SLES11 Security Update : cvs (SUSE-SU-2017:2422-1) NASL family Fedora Local Security Checks NASL id FEDORA_2017-E5A78C5CA9.NASL description This relase fixes CVE-2017-12836 vulerbaility (command injection via malicious SSH URL). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-05 modified 2017-08-30 plugin id 102831 published 2017-08-30 reporter This script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/102831 title Fedora 26 : cvs (2017-e5a78c5ca9) NASL family Debian Local Security Checks NASL id DEBIAN_DLA-1495.NASL description The git-annex package was found to have multiple vulnerabilities when operating on untrusted data that could lead to arbitrary command execution and encrypted data exfiltration. CVE-2017-12976 git-annex before 6.20170818 allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, as demonstrated by an ssh://-eProxyCommand= URL, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-1000116, and CVE-2017-1000117. CVE-2018-10857 git-annex is vulnerable to a private data exposure and exfiltration attack. It could expose the content of files located outside the git-annex repository, or content from a private web server on localhost or the LAN. CVE-2018-10859 git-annex is vulnerable to an Information Exposure when decrypting files. A malicious server for a special remote could trick git-annex into decrypting a file that was encrypted to the user last seen 2020-06-01 modified 2020-06-02 plugin id 117296 published 2018-09-06 reporter This script is Copyright (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/117296 title Debian DLA-1495-1 : git-annex security update NASL family Debian Local Security Checks NASL id DEBIAN_DSA-3940.NASL description It was discovered that CVS, a centralised version control system, did not correctly handle maliciously constructed repository URLs, which allowed an attacker to run an arbitrary shell command. last seen 2020-06-01 modified 2020-06-02 plugin id 102447 published 2017-08-14 reporter This script is Copyright (C) 2017-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/102447 title Debian DSA-3940-1 : cvs - security update NASL family SuSE Local Security Checks NASL id OPENSUSE-2017-1060.NASL description This update for cvs fixes the following issues : - CVE-2017-12836: A leading dash in the argument of the last seen 2020-06-05 modified 2017-09-18 plugin id 103285 published 2017-09-18 reporter This script is Copyright (C) 2017-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/103285 title openSUSE Security Update : cvs (openSUSE-2017-1060) NASL family Debian Local Security Checks NASL id DEBIAN_DLA-1144.NASL description git-annex before 6.20170818 allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, as demonstrated by an ssh://-eProxyCommand= URL, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-1000116, and CVE-2017-1000117. For Debian 7 last seen 2020-03-17 modified 2017-10-30 plugin id 104219 published 2017-10-30 reporter This script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/104219 title Debian DLA-1144-1 : git-annex security update NASL family Fedora Local Security Checks NASL id FEDORA_2017-97EB475D93.NASL description This relase fixes CVE-2017-12836 vulerbaility (command injection via malicious SSH URL). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-05 modified 2017-08-30 plugin id 102829 published 2017-08-30 reporter This script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/102829 title Fedora 25 : cvs (2017-97eb475d93) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201709-17.NASL description The remote host is affected by the vulnerability described in GLSA-201709-17 (CVS: Command injection) It was discovered that when CVS is configured to use SSH for remote repositories it allows remote attackers to execute arbitrary code through a repository URL with a specially crafted hostname. Impact : A remote attacker, by enticing a user to clone a specially crafted repository, could possibly execute arbitrary code with the privileges of the process. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 103445 published 2017-09-25 reporter This script is Copyright (C) 2017-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/103445 title GLSA-201709-17 : CVS: Command injection NASL family Debian Local Security Checks NASL id DEBIAN_DLA-1056.NASL description It was discovered that there was a command injection vulnerability in the CVS revision control system. For Debian 7 last seen 2020-03-17 modified 2017-08-14 plugin id 102441 published 2017-08-14 reporter This script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/102441 title Debian DLA-1056-1 : cvs security update
References
- http://lists.nongnu.org/archive/html/bug-cvs/2017-08/msg00000.html
- http://lists.nongnu.org/archive/html/bug-cvs/2017-08/msg00000.html
- http://www.debian.org/security/2017/dsa-3940
- http://www.debian.org/security/2017/dsa-3940
- http://www.openwall.com/lists/oss-security/2017/08/11/1
- http://www.openwall.com/lists/oss-security/2017/08/11/1
- http://www.openwall.com/lists/oss-security/2017/08/11/4
- http://www.openwall.com/lists/oss-security/2017/08/11/4
- http://www.securityfocus.com/bid/100279
- http://www.securityfocus.com/bid/100279
- http://www.ubuntu.com/usn/USN-3399-1
- http://www.ubuntu.com/usn/USN-3399-1
- https://bugzilla.redhat.com/show_bug.cgi?id=1480800
- https://bugzilla.redhat.com/show_bug.cgi?id=1480800
- https://security.gentoo.org/glsa/201709-17
- https://security.gentoo.org/glsa/201709-17