Vulnerabilities > CVE-2017-12836

047910
CVSS 5.1 - MEDIUM
Attack vector
NETWORK
Attack complexity
HIGH
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
high complexity
gnu
canonical
debian
nessus

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."

Nessus

  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-3399-1.NASL
    descriptionHank 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 seen2020-06-01
    modified2020-06-02
    plugin id102680
    published2017-08-22
    reporterUbuntu Security Notice (C) 2017-2019 Canonical, Inc. / NASL script (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/102680
    titleUbuntu 14.04 LTS / 16.04 LTS / 17.04 : cvs vulnerability (USN-3399-1)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_D9FE59EA194011E89EB85404A68AD561.NASL
    descriptionHank 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 seen2020-06-01
    modified2020-06-02
    plugin id106996
    published2018-02-26
    reporterThis script is Copyright (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/106996
    titleFreeBSD : cvs -- Remote code execution via ssh command injection (d9fe59ea-1940-11e8-9eb8-5404a68ad561)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2017-2419-1.NASL
    descriptionThis update for cvs fixes the following issues : - CVE-2017-12836: A leading dash in the argument of the
    last seen2020-06-01
    modified2020-06-02
    plugin id103176
    published2017-09-13
    reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/103176
    titleSUSE SLED12 / SLES12 Security Update : cvs (SUSE-SU-2017:2419-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2017-2422-1.NASL
    descriptionThis update for cvs fixes the following issues : - CVE-2017-12836: A leading dash in the argument of the
    last seen2020-06-01
    modified2020-06-02
    plugin id103178
    published2017-09-13
    reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/103178
    titleSUSE SLES11 Security Update : cvs (SUSE-SU-2017:2422-1)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2017-E5A78C5CA9.NASL
    descriptionThis 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 seen2020-06-05
    modified2017-08-30
    plugin id102831
    published2017-08-30
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/102831
    titleFedora 26 : cvs (2017-e5a78c5ca9)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1495.NASL
    descriptionThe 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 seen2020-06-01
    modified2020-06-02
    plugin id117296
    published2018-09-06
    reporterThis script is Copyright (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/117296
    titleDebian DLA-1495-1 : git-annex security update
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-3940.NASL
    descriptionIt 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 seen2020-06-01
    modified2020-06-02
    plugin id102447
    published2017-08-14
    reporterThis script is Copyright (C) 2017-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/102447
    titleDebian DSA-3940-1 : cvs - security update
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2017-1060.NASL
    descriptionThis update for cvs fixes the following issues : - CVE-2017-12836: A leading dash in the argument of the
    last seen2020-06-05
    modified2017-09-18
    plugin id103285
    published2017-09-18
    reporterThis script is Copyright (C) 2017-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/103285
    titleopenSUSE Security Update : cvs (openSUSE-2017-1060)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1144.NASL
    descriptiongit-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 seen2020-03-17
    modified2017-10-30
    plugin id104219
    published2017-10-30
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/104219
    titleDebian DLA-1144-1 : git-annex security update
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2017-97EB475D93.NASL
    descriptionThis 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 seen2020-06-05
    modified2017-08-30
    plugin id102829
    published2017-08-30
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/102829
    titleFedora 25 : cvs (2017-97eb475d93)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201709-17.NASL
    descriptionThe 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 seen2020-06-01
    modified2020-06-02
    plugin id103445
    published2017-09-25
    reporterThis script is Copyright (C) 2017-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/103445
    titleGLSA-201709-17 : CVS: Command injection
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1056.NASL
    descriptionIt was discovered that there was a command injection vulnerability in the CVS revision control system. For Debian 7
    last seen2020-03-17
    modified2017-08-14
    plugin id102441
    published2017-08-14
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/102441
    titleDebian DLA-1056-1 : cvs security update