Huawei EulerOS: Security Advisory for mercurial (EulerOS-SA-2017-1218)
2020-01-23T00:00:00
ID OPENVAS:1361412562311220171218 Type openvas Reporter Copyright (C) 2020 Greenbone Networks GmbH Modified 2020-01-23T00:00:00
Description
The remote host is missing an update for the Huawei EulerOS
# Copyright (C) 2020 Greenbone Networks GmbH
# Text descriptions are largely excerpted from the referenced
# advisory, and are Copyright (C) the respective author(s)
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.1.2.2017.1218");
script_version("2020-01-23T10:59:40+0000");
script_cve_id("CVE-2017-1000115", "CVE-2017-1000116");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"last_modification", value:"2020-01-23 10:59:40 +0000 (Thu, 23 Jan 2020)");
script_tag(name:"creation_date", value:"2020-01-23 10:59:40 +0000 (Thu, 23 Jan 2020)");
script_name("Huawei EulerOS: Security Advisory for mercurial (EulerOS-SA-2017-1218)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2020 Greenbone Networks GmbH");
script_family("Huawei EulerOS Local Security Checks");
script_dependencies("gb_huawei_euleros_consolidation.nasl");
script_mandatory_keys("ssh/login/euleros", "ssh/login/rpms", re:"ssh/login/release=EULEROS-2\.0SP2");
script_xref(name:"EulerOS-SA", value:"2017-1218");
script_xref(name:"URL", value:"https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2017-1218");
script_tag(name:"summary", value:"The remote host is missing an update for the Huawei EulerOS
'mercurial' package(s) announced via the EulerOS-SA-2017-1218 advisory.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable package version is present on the target host.");
script_tag(name:"insight", value:"A vulnerability was found in the way Mercurial handles path auditing and caches the results. An attacker could abuse a repository with a series of commits mixing symlinks and regular files/directories to trick Mercurial into writing outside of a given repository. (CVE-2017-1000115)
A shell command injection flaw related to the handling of 'ssh' URLs has been discovered in Mercurial. This can be exploited to execute shell commands with the privileges of the user running the Mercurial client, for example, when performing a 'checkout' or 'update' action on a sub-repository within a malicious repository or a legitimate repository containing a malicious commit. (CVE-2017-1000116)");
script_tag(name:"affected", value:"'mercurial' package(s) on Huawei EulerOS V2.0SP2.");
script_tag(name:"solution", value:"Please install the updated package(s).");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"package");
exit(0);
}
include("revisions-lib.inc");
include("pkg-lib-rpm.inc");
release = rpm_get_ssh_release();
if(!release)
exit(0);
res = "";
report = "";
if(release == "EULEROS-2.0SP2") {
if(!isnull(res = isrpmvuln(pkg:"mercurial", rpm:"mercurial~2.6.2~8", rls:"EULEROS-2.0SP2"))) {
report += res;
}
if(report != "") {
security_message(data:report);
} else if (__pkg_match) {
exit(99);
}
exit(0);
}
exit(0);
{"id": "OPENVAS:1361412562311220171218", "type": "openvas", "bulletinFamily": "scanner", "title": "Huawei EulerOS: Security Advisory for mercurial (EulerOS-SA-2017-1218)", "description": "The remote host is missing an update for the Huawei EulerOS\n ", "published": "2020-01-23T00:00:00", "modified": "2020-01-23T00:00:00", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562311220171218", "reporter": "Copyright (C) 2020 Greenbone Networks GmbH", "references": ["2017-1218", "https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2017-1218"], "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "lastseen": "2020-01-27T18:33:53", "viewCount": 0, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2017-1000116", "CVE-2017-1000115", "CVE-2017-1218"]}, {"type": "slackware", "idList": ["SSA-2017-223-03"]}, {"type": "nessus", "idList": ["FEDORA_2017-FA1D8AD61A.NASL", "EULEROS_SA-2017-1218.NASL", "REDHAT-RHSA-2017-2489.NASL", "EULEROS_SA-2017-1217.NASL", "CENTOS_RHSA-2017-2489.NASL", "OPENSUSE-2017-941.NASL", "ORACLELINUX_ELSA-2017-2489.NASL", "FREEBSD_PKG_B0628E53092A4037938B29805A7CD31B.NASL", "SLACKWARE_SSA_2017-223-03.NASL", "ALA_ALAS-2017-893.NASL"]}, {"type": "oraclelinux", "idList": ["ELSA-2017-2489"]}, {"type": "amazon", "idList": ["ALAS-2017-893"]}, {"type": "fedora", "idList": ["FEDORA:6D83460153C4", "FEDORA:1C87760F6574"]}, {"type": "freebsd", "idList": ["B0628E53-092A-4037-938B-29805A7CD31B", "1D33CDEE-7F6B-11E7-A9B5-3DEBB10A6871"]}, {"type": "openvas", "idList": ["OPENVAS:1361412562310891144", "OPENVAS:1361412562310891072", "OPENVAS:1361412562310891495", "OPENVAS:1361412562310873466", "OPENVAS:1361412562311220171217", "OPENVAS:1361412562310871888", "OPENVAS:1361412562310703963", "OPENVAS:1361412562310873321"]}, {"type": "redhat", "idList": ["RHSA-2017:1218", "RHSA-2017:2489"]}, {"type": "centos", "idList": ["CESA-2017:2489"]}, {"type": "gentoo", "idList": ["GLSA-201709-18"]}, {"type": "debian", "idList": ["DEBIAN:DLA-1144-1:E0FFD", "DEBIAN:DLA-1495-1:43D4C", "DEBIAN:DSA-3963-1:CD9EC", "DEBIAN:DLA-1072-1:C63A2"]}, {"type": "archlinux", "idList": ["ASA-201708-7"]}, {"type": "myhack58", "idList": ["MYHACK58:62201788524"]}, {"type": "hackerone", "idList": ["H1:260005"]}], "modified": "2020-01-27T18:33:53", "rev": 2}, "score": {"value": 6.8, "vector": "NONE", "modified": "2020-01-27T18:33:53", "rev": 2}, "vulnersScore": 6.8}, "pluginID": "1361412562311220171218", "sourceData": "# Copyright (C) 2020 Greenbone Networks GmbH\n# Text descriptions are largely excerpted from the referenced\n# advisory, and are Copyright (C) the respective author(s)\n#\n# SPDX-License-Identifier: GPL-2.0-or-later\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.1.2.2017.1218\");\n script_version(\"2020-01-23T10:59:40+0000\");\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"last_modification\", value:\"2020-01-23 10:59:40 +0000 (Thu, 23 Jan 2020)\");\n script_tag(name:\"creation_date\", value:\"2020-01-23 10:59:40 +0000 (Thu, 23 Jan 2020)\");\n script_name(\"Huawei EulerOS: Security Advisory for mercurial (EulerOS-SA-2017-1218)\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2020 Greenbone Networks GmbH\");\n script_family(\"Huawei EulerOS Local Security Checks\");\n script_dependencies(\"gb_huawei_euleros_consolidation.nasl\");\n script_mandatory_keys(\"ssh/login/euleros\", \"ssh/login/rpms\", re:\"ssh/login/release=EULEROS-2\\.0SP2\");\n\n script_xref(name:\"EulerOS-SA\", value:\"2017-1218\");\n script_xref(name:\"URL\", value:\"https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2017-1218\");\n\n script_tag(name:\"summary\", value:\"The remote host is missing an update for the Huawei EulerOS\n 'mercurial' package(s) announced via the EulerOS-SA-2017-1218 advisory.\");\n\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable package version is present on the target host.\");\n\n script_tag(name:\"insight\", value:\"A vulnerability was found in the way Mercurial handles path auditing and caches the results. An attacker could abuse a repository with a series of commits mixing symlinks and regular files/directories to trick Mercurial into writing outside of a given repository. (CVE-2017-1000115)\n\nA shell command injection flaw related to the handling of 'ssh' URLs has been discovered in Mercurial. This can be exploited to execute shell commands with the privileges of the user running the Mercurial client, for example, when performing a 'checkout' or 'update' action on a sub-repository within a malicious repository or a legitimate repository containing a malicious commit. (CVE-2017-1000116)\");\n\n script_tag(name:\"affected\", value:\"'mercurial' package(s) on Huawei EulerOS V2.0SP2.\");\n\n script_tag(name:\"solution\", value:\"Please install the updated package(s).\");\n\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_tag(name:\"qod_type\", value:\"package\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = rpm_get_ssh_release();\nif(!release)\n exit(0);\n\nres = \"\";\nreport = \"\";\n\nif(release == \"EULEROS-2.0SP2\") {\n\n if(!isnull(res = isrpmvuln(pkg:\"mercurial\", rpm:\"mercurial~2.6.2~8\", rls:\"EULEROS-2.0SP2\"))) {\n report += res;\n }\n\n if(report != \"\") {\n security_message(data:report);\n } else if (__pkg_match) {\n exit(99);\n }\n exit(0);\n}\n\nexit(0);", "naslFamily": "Huawei EulerOS Local Security Checks"}
{"cve": [{"lastseen": "2021-02-02T06:36:31", "description": "Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository", "edition": 6, "cvss3": {"exploitabilityScore": 3.9, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "NONE", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "HIGH", "baseScore": 7.5, "privilegesRequired": "NONE", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "userInteraction": "NONE", "version": "3.0"}, "impactScore": 3.6}, "published": "2017-10-05T01:29:00", "title": "CVE-2017-1000115", "type": "cve", "cwe": ["CWE-59"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 5.0, "vectorString": "AV:N/AC:L/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2017-1000115"], "modified": "2019-05-10T14:58:00", "cpe": ["cpe:/o:redhat:enterprise_linux_server_tus:7.6", "cpe:/o:redhat:enterprise_linux_server_eus:7.4", "cpe:/o:debian:debian_linux:8.0", "cpe:/o:redhat:enterprise_linux_server_tus:7.4", "cpe:/o:redhat:enterprise_linux_server:7.0", "cpe:/o:redhat:enterprise_linux_server_eus:7.5", "cpe:/o:redhat:enterprise_linux_server_aus:7.4", "cpe:/o:redhat:enterprise_linux_server_aus:7.6", "cpe:/o:redhat:enterprise_linux_workstation:7.0", "cpe:/o:redhat:enterprise_linux_desktop:7.0", "cpe:/o:redhat:enterprise_linux_server_eus:7.6", "cpe:/o:debian:debian_linux:9.0"], "id": "CVE-2017-1000115", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-1000115", "cvss": {"score": 5.0, "vector": "AV:N/AC:L/Au:N/C:N/I:P/A:N"}, "cpe23": ["cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*", "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*", "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*"]}, {"lastseen": "2021-02-02T06:36:31", "description": "Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.", "edition": 7, "cvss3": {"exploitabilityScore": 3.9, "cvssV3": {"baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 9.8, "privilegesRequired": "NONE", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "userInteraction": "NONE", "version": "3.0"}, "impactScore": 5.9}, "published": "2017-10-05T01:29:00", "title": "CVE-2017-1000116", "type": "cve", "cwe": ["CWE-78"], "bulletinFamily": "NVD", "cvss2": {"severity": "HIGH", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "COMPLETE", "availabilityImpact": "COMPLETE", "integrityImpact": "COMPLETE", "baseScore": 10.0, "vectorString": "AV:N/AC:L/Au:N/C:C/I:C/A:C", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 10.0, "obtainUserPrivilege": false}, "cvelist": ["CVE-2017-1000116"], "modified": "2019-10-03T00:03:00", "cpe": ["cpe:/o:redhat:enterprise_linux_server_tus:7.6", "cpe:/o:redhat:enterprise_linux_server_eus:7.4", "cpe:/o:debian:debian_linux:8.0", "cpe:/o:redhat:enterprise_linux_server_tus:7.4", "cpe:/o:redhat:enterprise_linux_server:7.0", "cpe:/o:redhat:enterprise_linux_server_eus:7.5", "cpe:/o:redhat:enterprise_linux_server_aus:7.4", "cpe:/o:redhat:enterprise_linux_server_aus:7.6", "cpe:/o:redhat:enterprise_linux_workstation:7.0", "cpe:/o:redhat:enterprise_linux_desktop:7.0", "cpe:/o:redhat:enterprise_linux_server_eus:7.6", "cpe:/o:debian:debian_linux:9.0"], "id": "CVE-2017-1000116", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-1000116", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}, "cpe23": ["cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*", "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*", "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*", "cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*"]}], "freebsd": [{"lastseen": "2019-05-29T18:32:13", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "\nMercurial Release Notes:\n\nCVE-2017-1000115\nMercurial's symlink auditing was incomplete prior to 4.3, and could be\n\t abused to write to files outside the repository.\nCVE-2017-1000116\nMercurial was not sanitizing hostnames passed to ssh, allowing shell\n\t injection attacks on clients by specifying a hostname starting with\n\t -oProxyCommand. This is also present in Git (CVE-2017-1000117) and\n\t Subversion (CVE-2017-9800), so please patch those tools as well if you\n\t have them installed.\n\n", "edition": 6, "modified": "2017-08-10T00:00:00", "published": "2017-08-10T00:00:00", "id": "1D33CDEE-7F6B-11E7-A9B5-3DEBB10A6871", "href": "https://vuxml.freebsd.org/freebsd/1d33cdee-7f6b-11e7-a9b5-3debb10a6871.html", "title": "Mercurial -- multiple vulnerabilities", "type": "freebsd", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2019-05-29T18:32:08", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "\nmercurial developers reports:\n\nMercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository\nMercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.\n\n", "edition": 5, "modified": "2017-10-05T00:00:00", "published": "2017-10-05T00:00:00", "id": "B0628E53-092A-4037-938B-29805A7CD31B", "href": "https://vuxml.freebsd.org/freebsd/b0628e53-092a-4037-938b-29805a7cd31b.html", "title": "mercurial -- multiple issues", "type": "freebsd", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "fedora": [{"lastseen": "2020-12-21T08:17:54", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "Mercurial is a fast, lightweight source control management system designed for efficient handling of very large distributed projects. Quick start: http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart Tutorial: http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial Extensions: http://www.selenic.com/mercurial/wiki/index.cgi/CategoryExtensi on ", "modified": "2017-08-29T15:20:01", "published": "2017-08-29T15:20:01", "id": "FEDORA:6D83460153C4", "href": "", "type": "fedora", "title": "[SECURITY] Fedora 26 Update: mercurial-4.2.3-1.fc26", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2020-12-21T08:17:54", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "Mercurial is a fast, lightweight source control management system designed for efficient handling of very large distributed projects. Quick start: http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart Tutorial: http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial Extensions: http://www.selenic.com/mercurial/wiki/index.cgi/CategoryExtensi on ", "modified": "2017-09-28T23:56:01", "published": "2017-09-28T23:56:01", "id": "FEDORA:1C87760F6574", "href": "", "type": "fedora", "title": "[SECURITY] Fedora 25 Update: mercurial-3.8.1-4.fc25", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "oraclelinux": [{"lastseen": "2020-10-22T17:02:30", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "[2.6.2-8]\n- Fix CVE-2017-1000115 and CVE-2017-1000116", "edition": 7, "modified": "2017-08-17T00:00:00", "published": "2017-08-17T00:00:00", "id": "ELSA-2017-2489", "href": "http://linux.oracle.com/errata/ELSA-2017-2489.html", "title": "mercurial security update", "type": "oraclelinux", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "amazon": [{"lastseen": "2020-11-10T12:37:37", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "**Issue Overview:**\n\nA shell command injection flaw related to the handling of "ssh" URLs has been discovered in Mercurial. This can be exploited to execute shell commands with the privileges of the user running the Mercurial client, for example, when performing a "checkout" or "update" action on a sub-repository within a malicious repository or a legitimate repository containing a malicious commit. ([CVE-2017-1000116 __](<https://access.redhat.com/security/cve/CVE-2017-1000116>))\n\nA vulnerability was found in the way Mercurial handles path auditing and caches the results. An attacker could abuse a repository with a series of commits mixing symlinks and regular files/directories to trick Mercurial into writing outside of a given repository. ([CVE-2017-1000115 __](<https://access.redhat.com/security/cve/CVE-2017-1000115>))\n\n \n**Affected Packages:** \n\n\nmercurial\n\n \n**Issue Correction:** \nRun _yum update mercurial_ to update your system. \n\n\n \n\n\n**New Packages:**\n \n \n i686: \n mercurial-common-4.2.3-1.29.amzn1.i686 \n emacs-mercurial-4.2.3-1.29.amzn1.i686 \n mercurial-python26-4.2.3-1.29.amzn1.i686 \n mercurial-debuginfo-4.2.3-1.29.amzn1.i686 \n mercurial-python27-4.2.3-1.29.amzn1.i686 \n emacs-mercurial-el-4.2.3-1.29.amzn1.i686 \n \n src: \n mercurial-4.2.3-1.29.amzn1.src \n \n x86_64: \n mercurial-python27-4.2.3-1.29.amzn1.x86_64 \n emacs-mercurial-4.2.3-1.29.amzn1.x86_64 \n mercurial-debuginfo-4.2.3-1.29.amzn1.x86_64 \n mercurial-common-4.2.3-1.29.amzn1.x86_64 \n mercurial-python26-4.2.3-1.29.amzn1.x86_64 \n emacs-mercurial-el-4.2.3-1.29.amzn1.x86_64 \n \n \n", "edition": 6, "modified": "2017-09-13T22:52:00", "published": "2017-09-13T22:52:00", "id": "ALAS-2017-893", "href": "https://alas.aws.amazon.com/ALAS-2017-893.html", "title": "Important: mercurial", "type": "amazon", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "centos": [{"lastseen": "2019-12-20T18:27:27", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "**CentOS Errata and Security Advisory** CESA-2017:2489\n\n\nMercurial is a fast, lightweight source control management system designed for efficient handling of very large distributed projects.\n\nSecurity Fix(es):\n\n* A vulnerability was found in the way Mercurial handles path auditing and caches the results. An attacker could abuse a repository with a series of commits mixing symlinks and regular files/directories to trick Mercurial into writing outside of a given repository. (CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of \"ssh\" URLs has been discovered in Mercurial. This can be exploited to execute shell commands with the privileges of the user running the Mercurial client, for example, when performing a \"checkout\" or \"update\" action on a sub-repository within a malicious repository or a legitimate repository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting CVE-2017-1000115 and the Subversion Team for reporting CVE-2017-1000116.\n\n**Merged security bulletin from advisories:**\nhttp://lists.centos.org/pipermail/centos-cr-announce/2017-August/004690.html\n\n**Affected packages:**\nemacs-mercurial\nemacs-mercurial-el\nmercurial\nmercurial-hgk\n\n**Upstream details at:**\n", "edition": 5, "modified": "2017-08-31T18:58:32", "published": "2017-08-31T18:58:32", "href": "http://lists.centos.org/pipermail/centos-cr-announce/2017-August/004690.html", "id": "CESA-2017:2489", "title": "emacs, mercurial security update", "type": "centos", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "openvas": [{"lastseen": "2019-05-29T18:34:34", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "The remote host is missing an update for the ", "modified": "2019-05-14T00:00:00", "published": "2017-08-18T00:00:00", "id": "OPENVAS:1361412562310871888", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310871888", "type": "openvas", "title": "RedHat Update for mercurial RHSA-2017:2489-01", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# RedHat Update for mercurial RHSA-2017:2489-01\n#\n# Authors:\n# System Generated Check\n#\n# Copyright:\n# Copyright (C) 2017 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.871888\");\n script_version(\"2019-05-14T07:15:16+0000\");\n script_tag(name:\"last_modification\", value:\"2019-05-14 07:15:16 +0000 (Tue, 14 May 2019)\");\n script_tag(name:\"creation_date\", value:\"2017-08-18 07:32:00 +0200 (Fri, 18 Aug 2017)\");\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"qod_type\", value:\"package\");\n script_name(\"RedHat Update for mercurial RHSA-2017:2489-01\");\n script_tag(name:\"summary\", value:\"The remote host is missing an update for the 'mercurial'\n package(s) announced via the referenced advisory.\");\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable version is present on the target host.\");\n script_tag(name:\"insight\", value:\"Mercurial is a fast, lightweight source\n control management system designed for efficient handling of very large\n distributed projects. Security Fix(es): * A vulnerability was found in the way\n Mercurial handles path auditing and caches the results. An attacker could abuse\n a repository with a series of commits mixing symlinks and regular\n files/directories to trick Mercurial into writing outside of a given repository.\n (CVE-2017-1000115) * A shell command injection flaw related to the handling of\n 'ssh' URLs has been discovered in Mercurial. This can be exploited to execute\n shell commands with the privileges of the user running the Mercurial client, for\n example, when performing a 'checkout' or 'update' action on a sub-repository\n within a malicious repository or a legitimate repository containing a malicious\n commit. (CVE-2017-1000116) Red Hat would like to thank the Mercurial Security\n Team for reporting CVE-2017-1000115 and the Subversion Team for reporting\n CVE-2017-1000116.\");\n script_tag(name:\"affected\", value:\"mercurial\non Red Hat Enterprise Linux Server (v. 7)\");\n script_tag(name:\"solution\", value:\"Please Install the Updated Packages.\");\n\n script_xref(name:\"RHSA\", value:\"2017:2489-01\");\n script_xref(name:\"URL\", value:\"https://www.redhat.com/archives/rhsa-announce/2017-August/msg00069.html\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2017 Greenbone Networks GmbH\");\n script_family(\"Red Hat Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/rhel\", \"ssh/login/rpms\", re:\"ssh/login/release=RHENT_7\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = rpm_get_ssh_release();\nif(!release) exit(0);\n\nres = \"\";\n\nif(release == \"RHENT_7\")\n{\n\n if ((res = isrpmvuln(pkg:\"mercurial\", rpm:\"mercurial~2.6.2~8.el7_4\", rls:\"RHENT_7\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if ((res = isrpmvuln(pkg:\"mercurial-debuginfo\", rpm:\"mercurial-debuginfo~2.6.2~8.el7_4\", rls:\"RHENT_7\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if (__pkg_match) exit(99);\n exit(0);\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2019-05-29T18:33:59", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "The remote host is missing an update for the ", "modified": "2019-05-14T00:00:00", "published": "2017-08-30T00:00:00", "id": "OPENVAS:1361412562310873321", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310873321", "type": "openvas", "title": "Fedora Update for mercurial FEDORA-2017-f03b04acbb", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Fedora Update for mercurial FEDORA-2017-f03b04acbb\n#\n# Authors:\n# System Generated Check\n#\n# Copyright:\n# Copyright (C) 2017 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.873321\");\n script_version(\"2019-05-14T07:15:16+0000\");\n script_tag(name:\"last_modification\", value:\"2019-05-14 07:15:16 +0000 (Tue, 14 May 2019)\");\n script_tag(name:\"creation_date\", value:\"2017-08-30 07:38:57 +0200 (Wed, 30 Aug 2017)\");\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"qod_type\", value:\"package\");\n script_name(\"Fedora Update for mercurial FEDORA-2017-f03b04acbb\");\n script_tag(name:\"summary\", value:\"The remote host is missing an update for the 'mercurial'\n package(s) announced via the referenced advisory.\");\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable version is present on the target host.\");\n script_tag(name:\"affected\", value:\"mercurial on Fedora 26\");\n script_tag(name:\"solution\", value:\"Please install the updated package(s).\");\n script_xref(name:\"FEDORA\", value:\"2017-f03b04acbb\");\n script_xref(name:\"URL\", value:\"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2JNWSQUDHZPCFPWAL5EVBK4RMA7WWVWZ\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2017 Greenbone Networks GmbH\");\n script_family(\"Fedora Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/fedora\", \"ssh/login/rpms\", re:\"ssh/login/release=FC26\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = rpm_get_ssh_release();\nif(!release)\n exit(0);\n\nres = \"\";\n\nif(release == \"FC26\")\n{\n\n if ((res = isrpmvuln(pkg:\"mercurial\", rpm:\"mercurial~4.2.3~1.fc26\", rls:\"FC26\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if (__pkg_match) exit(99);\n exit(0);\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2019-05-29T18:33:55", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "The remote host is missing an update for the ", "modified": "2019-05-14T00:00:00", "published": "2017-10-05T00:00:00", "id": "OPENVAS:1361412562310873466", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310873466", "type": "openvas", "title": "Fedora Update for mercurial FEDORA-2017-fa1d8ad61a", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Fedora Update for mercurial FEDORA-2017-fa1d8ad61a\n#\n# Authors:\n# System Generated Check\n#\n# Copyright:\n# Copyright (C) 2017 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.873466\");\n script_version(\"2019-05-14T07:15:16+0000\");\n script_tag(name:\"last_modification\", value:\"2019-05-14 07:15:16 +0000 (Tue, 14 May 2019)\");\n script_tag(name:\"creation_date\", value:\"2017-10-05 11:54:59 +0530 (Thu, 05 Oct 2017)\");\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"qod_type\", value:\"package\");\n script_name(\"Fedora Update for mercurial FEDORA-2017-fa1d8ad61a\");\n script_tag(name:\"summary\", value:\"The remote host is missing an update for the 'mercurial'\n package(s) announced via the referenced advisory.\");\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable version is present on the target host.\");\n script_tag(name:\"affected\", value:\"mercurial on Fedora 25\");\n script_tag(name:\"solution\", value:\"Please install the updated package(s).\");\n script_xref(name:\"FEDORA\", value:\"2017-fa1d8ad61a\");\n script_xref(name:\"URL\", value:\"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2TAM7UP6F4K6CDXKNRZPYSBBLXEUOV3D\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2017 Greenbone Networks GmbH\");\n script_family(\"Fedora Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/fedora\", \"ssh/login/rpms\", re:\"ssh/login/release=FC25\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = rpm_get_ssh_release();\nif(!release)\n exit(0);\n\nres = \"\";\n\nif(release == \"FC25\")\n{\n\n if ((res = isrpmvuln(pkg:\"mercurial\", rpm:\"mercurial~3.8.1~4.fc25\", rls:\"FC25\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if (__pkg_match) exit(99);\n exit(0);\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2020-01-27T18:35:27", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "The remote host is missing an update for the Huawei EulerOS\n ", "modified": "2020-01-23T00:00:00", "published": "2020-01-23T00:00:00", "id": "OPENVAS:1361412562311220171217", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562311220171217", "type": "openvas", "title": "Huawei EulerOS: Security Advisory for mercurial (EulerOS-SA-2017-1217)", "sourceData": "# Copyright (C) 2020 Greenbone Networks GmbH\n# Text descriptions are largely excerpted from the referenced\n# advisory, and are Copyright (C) the respective author(s)\n#\n# SPDX-License-Identifier: GPL-2.0-or-later\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.1.2.2017.1217\");\n script_version(\"2020-01-23T10:59:38+0000\");\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"last_modification\", value:\"2020-01-23 10:59:38 +0000 (Thu, 23 Jan 2020)\");\n script_tag(name:\"creation_date\", value:\"2020-01-23 10:59:38 +0000 (Thu, 23 Jan 2020)\");\n script_name(\"Huawei EulerOS: Security Advisory for mercurial (EulerOS-SA-2017-1217)\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2020 Greenbone Networks GmbH\");\n script_family(\"Huawei EulerOS Local Security Checks\");\n script_dependencies(\"gb_huawei_euleros_consolidation.nasl\");\n script_mandatory_keys(\"ssh/login/euleros\", \"ssh/login/rpms\", re:\"ssh/login/release=EULEROS-2\\.0SP1\");\n\n script_xref(name:\"EulerOS-SA\", value:\"2017-1217\");\n script_xref(name:\"URL\", value:\"https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2017-1217\");\n\n script_tag(name:\"summary\", value:\"The remote host is missing an update for the Huawei EulerOS\n 'mercurial' package(s) announced via the EulerOS-SA-2017-1217 advisory.\");\n\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable package version is present on the target host.\");\n\n script_tag(name:\"insight\", value:\"A vulnerability was found in the way Mercurial handles path auditing and caches the results. An attacker could abuse a repository with a series of commits mixing symlinks and regular files/directories to trick Mercurial into writing outside of a given repository. (CVE-2017-1000115)\n\nA shell command injection flaw related to the handling of 'ssh' URLs has been discovered in Mercurial. This can be exploited to execute shell commands with the privileges of the user running the Mercurial client, for example, when performing a 'checkout' or 'update' action on a sub-repository within a malicious repository or a legitimate repository containing a malicious commit. (CVE-2017-1000116)\");\n\n script_tag(name:\"affected\", value:\"'mercurial' package(s) on Huawei EulerOS V2.0SP1.\");\n\n script_tag(name:\"solution\", value:\"Please install the updated package(s).\");\n\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_tag(name:\"qod_type\", value:\"package\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = rpm_get_ssh_release();\nif(!release)\n exit(0);\n\nres = \"\";\nreport = \"\";\n\nif(release == \"EULEROS-2.0SP1\") {\n\n if(!isnull(res = isrpmvuln(pkg:\"mercurial\", rpm:\"mercurial~2.6.2~8\", rls:\"EULEROS-2.0SP1\"))) {\n report += res;\n }\n\n if(report != \"\") {\n security_message(data:report);\n } else if (__pkg_match) {\n exit(99);\n }\n exit(0);\n}\n\nexit(0);", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2019-05-29T18:34:24", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-9462", "CVE-2017-1000116"], "description": "Several issues were discovered in Mercurial, a distributed revision\ncontrol system.\n\nCVE-2017-9462 (fixed in stretch only)\n\nJonathan Claudius of Mozilla discovered that repositories served\nover stdio could be tricked into granting authorized users access to\nthe Python debugger.\n\nCVE-2017-1000115\nMercurial", "modified": "2019-05-14T00:00:00", "published": "2017-09-04T00:00:00", "id": "OPENVAS:1361412562310703963", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310703963", "type": "openvas", "title": "Debian Security Advisory DSA 3963-1 (mercurial - security update)", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Auto-generated from advisory DSA 3963-1 using nvtgen 1.0\n# Script version: 1.0\n#\n# Author:\n# Greenbone Networks\n#\n# Copyright:\n# Copyright (c) 2017 Greenbone Networks GmbH http://greenbone.net\n# Text descriptions are largely excerpted from the referenced\n# advisory, and are Copyright (c) the respective author(s)\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.703963\");\n script_version(\"2019-05-14T07:15:16+0000\");\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\", \"CVE-2017-9462\");\n script_name(\"Debian Security Advisory DSA 3963-1 (mercurial - security update)\");\n script_tag(name:\"last_modification\", value:\"2019-05-14 07:15:16 +0000 (Tue, 14 May 2019)\");\n script_tag(name:\"creation_date\", value:\"2017-09-04 00:00:00 +0200 (Mon, 04 Sep 2017)\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_tag(name:\"qod_type\", value:\"package\");\n\n script_xref(name:\"URL\", value:\"http://www.debian.org/security/2017/dsa-3963.html\");\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"Copyright (c) 2017 Greenbone Networks GmbH http://greenbone.net\");\n script_family(\"Debian Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/debian_linux\", \"ssh/login/packages\", re:\"ssh/login/release=DEB(9|8)\");\n script_tag(name:\"affected\", value:\"mercurial on Debian Linux\");\n script_tag(name:\"solution\", value:\"For the oldstable distribution (jessie), these problems have been fixed\nin version 3.1.2-2+deb8u4.\n\nFor the stable distribution (stretch), these problems have been fixed in\nversion 4.0-1+deb9u1.\n\nWe recommend that you upgrade your mercurial packages.\");\n script_tag(name:\"summary\", value:\"Several issues were discovered in Mercurial, a distributed revision\ncontrol system.\n\nCVE-2017-9462 (fixed in stretch only)\n\nJonathan Claudius of Mozilla discovered that repositories served\nover stdio could be tricked into granting authorized users access to\nthe Python debugger.\n\nCVE-2017-1000115\nMercurial's symlink auditing was incomplete, and could be abused to\nwrite files outside the repository.\n\nCVE-2017-1000116\nJoern Schneeweisz discovered that Mercurial did not correctly handle\nmaliciously constructed ssh:// URLs. This allowed an attacker to run\nan arbitrary shell command.\");\n script_tag(name:\"vuldetect\", value:\"This check tests the installed software version using the apt package manager.\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-deb.inc\");\n\nres = \"\";\nreport = \"\";\nif((res = isdpkgvuln(pkg:\"mercurial\", ver:\"4.0-1+deb9u1\", rls:\"DEB9\")) != NULL) {\n report += res;\n}\nif((res = isdpkgvuln(pkg:\"mercurial-common\", ver:\"4.0-1+deb9u1\", rls:\"DEB9\")) != NULL) {\n report += res;\n}\nif((res = isdpkgvuln(pkg:\"mercurial\", ver:\"3.1.2-2+deb8u4\", rls:\"DEB8\")) != NULL) {\n report += res;\n}\nif((res = isdpkgvuln(pkg:\"mercurial-common\", ver:\"3.1.2-2+deb8u4\", rls:\"DEB8\")) != NULL) {\n report += res;\n}\n\nif(report != \"\") {\n security_message(data:report);\n} else if(__pkg_match) {\n exit(99);\n}", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2020-01-29T20:08:03", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000117", "CVE-2017-1000116", "CVE-2017-9800"], "description": "Two significant vulnerabilities were found in the Mercurial version\ncontrol system which could lead to shell injection attacks and\nout-of-tree file overwrite.\n\nCVE-2017-1000115\n\nMercurial", "modified": "2020-01-29T00:00:00", "published": "2018-02-07T00:00:00", "id": "OPENVAS:1361412562310891072", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310891072", "type": "openvas", "title": "Debian LTS: Security Advisory for mercurial (DLA-1072-1)", "sourceData": "# Copyright (C) 2018 Greenbone Networks GmbH\n# Text descriptions are largely excerpted from the referenced\n# advisory, and are Copyright (C) of the respective author(s)\n#\n# SPDX-License-Identifier: GPL-2.0-or-later\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.891072\");\n script_version(\"2020-01-29T08:22:52+0000\");\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\", \"CVE-2017-1000117\", \"CVE-2017-9800\");\n script_name(\"Debian LTS: Security Advisory for mercurial (DLA-1072-1)\");\n script_tag(name:\"last_modification\", value:\"2020-01-29 08:22:52 +0000 (Wed, 29 Jan 2020)\");\n script_tag(name:\"creation_date\", value:\"2018-02-07 00:00:00 +0100 (Wed, 07 Feb 2018)\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_tag(name:\"qod_type\", value:\"package\");\n\n script_xref(name:\"URL\", value:\"https://lists.debian.org/debian-lts-announce/2017/08/msg00032.html\");\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"Copyright (C) 2018 Greenbone Networks GmbH http://greenbone.net\");\n script_family(\"Debian Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/debian_linux\", \"ssh/login/packages\", re:\"ssh/login/release=DEB7\");\n\n script_tag(name:\"affected\", value:\"mercurial on Debian Linux\");\n\n script_tag(name:\"solution\", value:\"For Debian 7 'Wheezy', these problems have been fixed in version\n2.2.2-4+deb7u5.\n\nWe recommend that you upgrade your mercurial packages.\");\n\n script_tag(name:\"summary\", value:\"Two significant vulnerabilities were found in the Mercurial version\ncontrol system which could lead to shell injection attacks and\nout-of-tree file overwrite.\n\nCVE-2017-1000115\n\nMercurial's symlink auditing was incomplete prior to 4.3, and\ncould be abused to write to files outside the repository.\n\nCVE-2017-1000116\n\nMercurial was not sanitizing hostnames passed to ssh, allowing\nshell injection attacks on clients by specifying a hostname\nstarting with -oProxyCommand. This vulnerability is similar to\nthose in Git (CVE-2017-1000117) and Subversion (CVE-2017-9800).\");\n\n script_tag(name:\"vuldetect\", value:\"This check tests the installed software version using the apt package manager.\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-deb.inc\");\n\nres = \"\";\nreport = \"\";\nif(!isnull(res = isdpkgvuln(pkg:\"mercurial\", ver:\"2.2.2-4+deb7u5\", rls:\"DEB7\"))) {\n report += res;\n}\nif(!isnull(res = isdpkgvuln(pkg:\"mercurial-common\", ver:\"2.2.2-4+deb7u5\", rls:\"DEB7\"))) {\n report += res;\n}\n\nif(report != \"\") {\n security_message(data:report);\n} else if(__pkg_match) {\n exit(99);\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2020-01-29T20:07:00", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-12976", "CVE-2017-1000117", "CVE-2017-1000116", "CVE-2017-12836", "CVE-2017-9800"], "description": "git-annex before 6.20170818 allows remote attackers to execute arbitrary\ncommands via an ssh URL with an initial dash character in the hostname,\nas demonstrated by an ssh://-eProxyCommand= URL, a related issue to\nCVE-2017-9800, CVE-2017-12836, CVE-2017-1000116, and CVE-2017-1000117.", "modified": "2020-01-29T00:00:00", "published": "2018-02-07T00:00:00", "id": "OPENVAS:1361412562310891144", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310891144", "type": "openvas", "title": "Debian LTS: Security Advisory for git-annex (DLA-1144-1)", "sourceData": "# Copyright (C) 2018 Greenbone Networks GmbH\n# Text descriptions are largely excerpted from the referenced\n# advisory, and are Copyright (C) of the respective author(s)\n#\n# SPDX-License-Identifier: GPL-2.0-or-later\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.891144\");\n script_version(\"2020-01-29T08:22:52+0000\");\n script_cve_id(\"CVE-2017-1000116\", \"CVE-2017-1000117\", \"CVE-2017-12836\", \"CVE-2017-12976\", \"CVE-2017-9800\");\n script_name(\"Debian LTS: Security Advisory for git-annex (DLA-1144-1)\");\n script_tag(name:\"last_modification\", value:\"2020-01-29 08:22:52 +0000 (Wed, 29 Jan 2020)\");\n script_tag(name:\"creation_date\", value:\"2018-02-07 00:00:00 +0100 (Wed, 07 Feb 2018)\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_tag(name:\"qod_type\", value:\"package\");\n\n script_xref(name:\"URL\", value:\"https://lists.debian.org/debian-lts-announce/2017/10/msg00026.html\");\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"Copyright (C) 2018 Greenbone Networks GmbH http://greenbone.net\");\n script_family(\"Debian Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/debian_linux\", \"ssh/login/packages\", re:\"ssh/login/release=DEB7\");\n\n script_tag(name:\"affected\", value:\"git-annex on Debian Linux\");\n\n script_tag(name:\"solution\", value:\"For Debian 7 'Wheezy', these problems have been fixed in version\n3.20120629+deb7u1.\n\nWe recommend that you upgrade your git-annex packages.\");\n\n script_tag(name:\"summary\", value:\"git-annex before 6.20170818 allows remote attackers to execute arbitrary\ncommands via an ssh URL with an initial dash character in the hostname,\nas demonstrated by an ssh://-eProxyCommand= URL, a related issue to\nCVE-2017-9800, CVE-2017-12836, CVE-2017-1000116, and CVE-2017-1000117.\");\n\n script_tag(name:\"vuldetect\", value:\"This check tests the installed software version using the apt package manager.\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-deb.inc\");\n\nres = \"\";\nreport = \"\";\nif(!isnull(res = isdpkgvuln(pkg:\"git-annex\", ver:\"3.20120629+deb7u1\", rls:\"DEB7\"))) {\n report += res;\n}\n\nif(report != \"\") {\n security_message(data:report);\n} else if(__pkg_match) {\n exit(99);\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2020-01-29T20:11:33", "bulletinFamily": "scanner", "cvelist": ["CVE-2018-10859", "CVE-2017-12976", "CVE-2017-1000117", "CVE-2017-1000116", "CVE-2017-12836", "CVE-2018-10857", "CVE-2017-9800"], "description": "The git-annex package was found to have multiple vulnerabilities when\noperating on untrusted data that could lead to arbitrary command\nexecution and encrypted data exfiltration.\n\nCVE-2017-12976\n\ngit-annex before 6.20170818 allows remote attackers to execute\narbitrary commands via an ssh URL with an initial dash character\nin the hostname, as demonstrated by an ssh://-eProxyCommand= URL,\na related issue to CVE-2017-9800, CVE-2017-12836,\nCVE-2017-1000116, and CVE-2017-1000117.\n\nCVE-2018-10857\n\ngit-annex is vulnerable to a private data exposure and\nexfiltration attack. It could expose the content of files located\noutside the git-annex repository, or content from a private web\nserver on localhost or the LAN.\n\nCVE-2018-10859\n\ngit-annex is vulnerable to an Information Exposure when decrypting\nfiles. A malicious server for a special remote could trick\ngit-annex into decrypting a file that was encrypted to the user", "modified": "2020-01-29T00:00:00", "published": "2018-09-06T00:00:00", "id": "OPENVAS:1361412562310891495", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310891495", "type": "openvas", "title": "Debian LTS: Security Advisory for git-annex (DLA-1495-1)", "sourceData": "# Copyright (C) 2018 Greenbone Networks GmbH\n# Text descriptions are largely excerpted from the referenced\n# advisory, and are Copyright (C) of the respective author(s)\n#\n# SPDX-License-Identifier: GPL-2.0-or-later\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.891495\");\n script_version(\"2020-01-29T08:22:52+0000\");\n script_cve_id(\"CVE-2017-1000116\", \"CVE-2017-1000117\", \"CVE-2017-12836\", \"CVE-2017-12976\", \"CVE-2017-9800\",\n \"CVE-2018-10857\", \"CVE-2018-10859\");\n script_name(\"Debian LTS: Security Advisory for git-annex (DLA-1495-1)\");\n script_tag(name:\"last_modification\", value:\"2020-01-29 08:22:52 +0000 (Wed, 29 Jan 2020)\");\n script_tag(name:\"creation_date\", value:\"2018-09-06 00:00:00 +0200 (Thu, 06 Sep 2018)\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_tag(name:\"qod_type\", value:\"package\");\n\n script_xref(name:\"URL\", value:\"https://lists.debian.org/debian-lts-announce/2018/09/msg00004.html\");\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"Copyright (C) 2018 Greenbone Networks GmbH http://greenbone.net\");\n script_family(\"Debian Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/debian_linux\", \"ssh/login/packages\", re:\"ssh/login/release=DEB8\");\n\n script_tag(name:\"affected\", value:\"git-annex on Debian Linux\");\n\n script_tag(name:\"solution\", value:\"For Debian 8 'Jessie', these problems have been fixed in version\n5.20141125+oops-1+deb8u2.\n\nWe recommend that you upgrade your git-annex packages.\");\n\n script_tag(name:\"summary\", value:\"The git-annex package was found to have multiple vulnerabilities when\noperating on untrusted data that could lead to arbitrary command\nexecution and encrypted data exfiltration.\n\nCVE-2017-12976\n\ngit-annex before 6.20170818 allows remote attackers to execute\narbitrary commands via an ssh URL with an initial dash character\nin the hostname, as demonstrated by an ssh://-eProxyCommand= URL,\na related issue to CVE-2017-9800, CVE-2017-12836,\nCVE-2017-1000116, and CVE-2017-1000117.\n\nCVE-2018-10857\n\ngit-annex is vulnerable to a private data exposure and\nexfiltration attack. It could expose the content of files located\noutside the git-annex repository, or content from a private web\nserver on localhost or the LAN.\n\nCVE-2018-10859\n\ngit-annex is vulnerable to an Information Exposure when decrypting\nfiles. A malicious server for a special remote could trick\ngit-annex into decrypting a file that was encrypted to the user's\ngpg key. This attack could be used to expose encrypted data that\nwas never stored in git-annex\");\n\n script_tag(name:\"vuldetect\", value:\"This check tests the installed software version using the apt package manager.\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-deb.inc\");\n\nres = \"\";\nreport = \"\";\nif(!isnull(res = isdpkgvuln(pkg:\"git-annex\", ver:\"5.20141125+oops-1+deb8u2\", rls:\"DEB8\"))) {\n report += res;\n}\n\nif(report != \"\") {\n security_message(data:report);\n} else if(__pkg_match) {\n exit(99);\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "slackware": [{"lastseen": "2020-10-25T16:36:16", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "New mercurial packages are available for Slackware 14.0, 14.1, 14.2,\nand -current to fix security issues.\n\n\nHere are the details from the Slackware 14.2 ChangeLog:\n\npatches/packages/mercurial-4.3.1-i586-1_slack14.2.txz: Upgraded.\n Fixes security issues:\n Mercurial's symlink auditing was incomplete prior to 4.3, and could\n be abused to write to files outside the repository.\n Mercurial was not sanitizing hostnames passed to ssh, allowing\n shell injection attacks on clients by specifying a hostname starting\n with -oProxyCommand.\n For more information, see:\n https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-1000115\n https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-1000116\n (* Security fix *)\n\nWhere to find the new packages:\n\nThanks to the friendly folks at the OSU Open Source Lab\n(http://osuosl.org) for donating FTP and rsync hosting\nto the Slackware project! :-)\n\nAlso see the \"Get Slack\" section on http://slackware.com for\nadditional mirror sites near you.\n\nUpdated package for Slackware 14.0:\nftp://ftp.slackware.com/pub/slackware/slackware-14.0/patches/packages/mercurial-4.3.1-i486-1_slack14.0.txz\n\nUpdated package for Slackware x86_64 14.0:\nftp://ftp.slackware.com/pub/slackware/slackware64-14.0/patches/packages/mercurial-4.3.1-x86_64-1_slack14.0.txz\n\nUpdated package for Slackware 14.1:\nftp://ftp.slackware.com/pub/slackware/slackware-14.1/patches/packages/mercurial-4.3.1-i486-1_slack14.1.txz\n\nUpdated package for Slackware x86_64 14.1:\nftp://ftp.slackware.com/pub/slackware/slackware64-14.1/patches/packages/mercurial-4.3.1-x86_64-1_slack14.1.txz\n\nUpdated package for Slackware 14.2:\nftp://ftp.slackware.com/pub/slackware/slackware-14.2/patches/packages/mercurial-4.3.1-i586-1_slack14.2.txz\n\nUpdated package for Slackware x86_64 14.2:\nftp://ftp.slackware.com/pub/slackware/slackware64-14.2/patches/packages/mercurial-4.3.1-x86_64-1_slack14.2.txz\n\nUpdated package for Slackware -current:\nftp://ftp.slackware.com/pub/slackware/slackware-current/slackware/d/mercurial-4.3.1-i586-1.txz\n\nUpdated package for Slackware x86_64 -current:\nftp://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/d/mercurial-4.3.1-x86_64-1.txz\n\n\nMD5 signatures:\n\nSlackware 14.0 package:\n4d9a2a90109202aa2023ff758f8e2b88 mercurial-4.3.1-i486-1_slack14.0.txz\n\nSlackware x86_64 14.0 package:\nc949af25a3a61ba5b88780b2e10b02d5 mercurial-4.3.1-x86_64-1_slack14.0.txz\n\nSlackware 14.1 package:\n9260d7fa714eea9a81fb9bc6d56708d4 mercurial-4.3.1-i486-1_slack14.1.txz\n\nSlackware x86_64 14.1 package:\nf0525de8c1497f154f280dbafcdcd25b mercurial-4.3.1-x86_64-1_slack14.1.txz\n\nSlackware 14.2 package:\ncf70802f8f9a1ec306ebde94eac246fc mercurial-4.3.1-i586-1_slack14.2.txz\n\nSlackware x86_64 14.2 package:\nc44f92967f03ac8724f898451d2b4f2f mercurial-4.3.1-x86_64-1_slack14.2.txz\n\nSlackware -current package:\nb81fe0b2ec0d3923ce12b5d374b21d7e d/mercurial-4.3.1-i586-1.txz\n\nSlackware x86_64 -current package:\n84c3d7646ed899df599435fa32270c83 d/mercurial-4.3.1-x86_64-1.txz\n\n\nInstallation instructions:\n\nUpgrade the package as root:\n > upgradepkg mercurial-4.3.1-i586-1_slack14.2.txz", "modified": "2017-08-11T23:11:24", "published": "2017-08-11T23:11:24", "id": "SSA-2017-223-03", "href": "http://www.slackware.com/security/viewer.php?l=slackware-security&y=2017&m=slackware-security.449586", "type": "slackware", "title": "[slackware-security] mercurial", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "redhat": [{"lastseen": "2019-08-13T18:44:50", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "description": "Mercurial is a fast, lightweight source control management system designed for efficient handling of very large distributed projects.\n\nSecurity Fix(es):\n\n* A vulnerability was found in the way Mercurial handles path auditing and caches the results. An attacker could abuse a repository with a series of commits mixing symlinks and regular files/directories to trick Mercurial into writing outside of a given repository. (CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of \"ssh\" URLs has been discovered in Mercurial. This can be exploited to execute shell commands with the privileges of the user running the Mercurial client, for example, when performing a \"checkout\" or \"update\" action on a sub-repository within a malicious repository or a legitimate repository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting CVE-2017-1000115 and the Subversion Team for reporting CVE-2017-1000116.", "modified": "2018-04-12T03:32:52", "published": "2017-08-17T13:19:11", "id": "RHSA-2017:2489", "href": "https://access.redhat.com/errata/RHSA-2017:2489", "type": "redhat", "title": "(RHSA-2017:2489) Important: mercurial security update", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "nessus": [{"lastseen": "2021-01-06T10:57:16", "description": "mercurial developers reports :\n\nMercurial prior to version 4.3 is vulnerable to a missing symlink\ncheck that can malicious repositories to modify files outside the\nrepository\n\nMercurial prior to 4.3 did not adequately sanitize hostnames passed to\nssh, leading to possible shell-injection attacks.", "edition": 26, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-10-17T00:00:00", "title": "FreeBSD : mercurial -- multiple issues (b0628e53-092a-4037-938b-29805a7cd31b)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-10-17T00:00:00", "cpe": ["p-cpe:/a:freebsd:freebsd:mercurial", "cpe:/o:freebsd:freebsd"], "id": "FREEBSD_PKG_B0628E53092A4037938B29805A7CD31B.NASL", "href": "https://www.tenable.com/plugins/nessus/103861", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from the FreeBSD VuXML database :\n#\n# Copyright 2003-2019 Jacques Vidrine and contributors\n#\n# Redistribution and use in source (VuXML) and 'compiled' forms (SGML,\n# HTML, PDF, PostScript, RTF and so forth) with or without modification,\n# are permitted provided that the following conditions are met:\n# 1. Redistributions of source code (VuXML) must retain the above\n# copyright notice, this list of conditions and the following\n# disclaimer as the first lines of this file unmodified.\n# 2. Redistributions in compiled form (transformed to other DTDs,\n# published online in any format, converted to PDF, PostScript,\n# RTF and other formats) must reproduce the above copyright\n# notice, this list of conditions and the following disclaimer\n# in the documentation and/or other materials provided with the\n# distribution.\n# \n# THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS \"AS IS\"\n# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS\n# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\n# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,\n# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(103861);\n script_version(\"3.6\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/04\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n\n script_name(english:\"FreeBSD : mercurial -- multiple issues (b0628e53-092a-4037-938b-29805a7cd31b)\");\n script_summary(english:\"Checks for updated package in pkg_info output\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote FreeBSD host is missing a security-related update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"mercurial developers reports :\n\nMercurial prior to version 4.3 is vulnerable to a missing symlink\ncheck that can malicious repositories to modify files outside the\nrepository\n\nMercurial prior to 4.3 did not adequately sanitize hostnames passed to\nssh, leading to possible shell-injection attacks.\"\n );\n # http://www.securityfocus.com/bid/100290\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://www.securityfocus.com/bid/100290\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://security.gentoo.org/glsa/201709-18\"\n );\n # https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?425a5664\"\n );\n # http://www.securityfocus.com/bid/100290\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://www.securityfocus.com/bid/100290\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://security.gentoo.org/glsa/201709-18\"\n );\n # https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?425a5664\"\n );\n # https://vuxml.freebsd.org/freebsd/b0628e53-092a-4037-938b-29805a7cd31b.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?31d2d2c7\"\n );\n script_set_attribute(attribute:\"solution\", value:\"Update the affected package.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:freebsd:freebsd:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:freebsd:freebsd\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/10/16\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/10/17\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"FreeBSD Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/FreeBSD/release\", \"Host/FreeBSD/pkg_info\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"freebsd_package.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/FreeBSD/release\")) audit(AUDIT_OS_NOT, \"FreeBSD\");\nif (!get_kb_item(\"Host/FreeBSD/pkg_info\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\n\nif (pkg_test(save_report:TRUE, pkg:\"mercurial<4.3\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:pkg_report_get());\n else security_hole(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-01-07T10:14:37", "description": "Security fix for CVE-2017-1000115, CVE-2017-1000116\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora update system website.\nTenable has attempted to automatically clean and format it as much as\npossible without introducing additional issues.", "edition": 20, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-08-30T00:00:00", "title": "Fedora 26 : mercurial (2017-f03b04acbb)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-08-30T00:00:00", "cpe": ["p-cpe:/a:fedoraproject:fedora:mercurial", "cpe:/o:fedoraproject:fedora:26"], "id": "FEDORA_2017-F03B04ACBB.NASL", "href": "https://www.tenable.com/plugins/nessus/102832", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Fedora Security Advisory FEDORA-2017-f03b04acbb.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(102832);\n script_version(\"3.7\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/06\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_xref(name:\"FEDORA\", value:\"2017-f03b04acbb\");\n\n script_name(english:\"Fedora 26 : mercurial (2017-f03b04acbb)\");\n script_summary(english:\"Checks rpm output for the updated package.\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Fedora host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Security fix for CVE-2017-1000115, CVE-2017-1000116\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora update system website.\nTenable has attempted to automatically clean and format it as much as\npossible without introducing additional issues.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bodhi.fedoraproject.org/updates/FEDORA-2017-f03b04acbb\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected mercurial package.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:fedoraproject:fedora:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:fedoraproject:fedora:26\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/08/29\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/08/30\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"Fedora Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/RedHat/release\", \"Host/RedHat/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/RedHat/release\");\nif (isnull(release) || \"Fedora\" >!< release) audit(AUDIT_OS_NOT, \"Fedora\");\nos_ver = pregmatch(pattern: \"Fedora.*release ([0-9]+)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Fedora\");\nos_ver = os_ver[1];\nif (! preg(pattern:\"^26([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"Fedora 26\", \"Fedora \" + os_ver);\n\nif (!get_kb_item(\"Host/RedHat/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Fedora\", cpu);\n\n\nflag = 0;\nif (rpm_check(release:\"FC26\", reference:\"mercurial-4.2.3-1.fc26\")) flag++;\n\n\nif (flag)\n{\n security_report_v4(\n port : 0,\n severity : SECURITY_HOLE,\n extra : rpm_report_get()\n );\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"mercurial\");\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-01-17T09:11:03", "description": "New mercurial packages are available for Slackware 14.0, 14.1, 14.2,\nand -current to fix security issues.", "edition": 27, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-08-14T00:00:00", "title": "Slackware 14.0 / 14.1 / 14.2 / current : mercurial (SSA:2017-223-03)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-08-14T00:00:00", "cpe": ["cpe:/o:slackware:slackware_linux:14.2", "cpe:/o:slackware:slackware_linux:14.1", "cpe:/o:slackware:slackware_linux:14.0", "p-cpe:/a:slackware:slackware_linux:mercurial", "cpe:/o:slackware:slackware_linux"], "id": "SLACKWARE_SSA_2017-223-03.NASL", "href": "https://www.tenable.com/plugins/nessus/102434", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Slackware Security Advisory 2017-223-03. The text \n# itself is copyright (C) Slackware Linux, Inc.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(102434);\n script_version(\"3.6\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/14\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_xref(name:\"SSA\", value:\"2017-223-03\");\n\n script_name(english:\"Slackware 14.0 / 14.1 / 14.2 / current : mercurial (SSA:2017-223-03)\");\n script_summary(english:\"Checks for updated package in /var/log/packages\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Slackware host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"New mercurial packages are available for Slackware 14.0, 14.1, 14.2,\nand -current to fix security issues.\"\n );\n # http://www.slackware.com/security/viewer.php?l=slackware-security&y=2017&m=slackware-security.449586\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?977302c0\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected mercurial package.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:slackware:slackware_linux:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:slackware:slackware_linux\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:slackware:slackware_linux:14.0\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:slackware:slackware_linux:14.1\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:slackware:slackware_linux:14.2\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/08/11\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/08/14\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"Slackware Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/Slackware/release\", \"Host/Slackware/packages\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"slackware.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/Slackware/release\")) audit(AUDIT_OS_NOT, \"Slackware\");\nif (!get_kb_item(\"Host/Slackware/packages\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Slackware\", cpu);\n\n\nflag = 0;\nif (slackware_check(osver:\"14.0\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"i486\", pkgnum:\"1_slack14.0\")) flag++;\nif (slackware_check(osver:\"14.0\", arch:\"x86_64\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"x86_64\", pkgnum:\"1_slack14.0\")) flag++;\n\nif (slackware_check(osver:\"14.1\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"i486\", pkgnum:\"1_slack14.1\")) flag++;\nif (slackware_check(osver:\"14.1\", arch:\"x86_64\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"x86_64\", pkgnum:\"1_slack14.1\")) flag++;\n\nif (slackware_check(osver:\"14.2\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"i586\", pkgnum:\"1_slack14.2\")) flag++;\nif (slackware_check(osver:\"14.2\", arch:\"x86_64\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"x86_64\", pkgnum:\"1_slack14.2\")) flag++;\n\nif (slackware_check(osver:\"current\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"i586\", pkgnum:\"1\")) flag++;\nif (slackware_check(osver:\"current\", arch:\"x86_64\", pkgname:\"mercurial\", pkgver:\"4.3.1\", pkgarch:\"x86_64\", pkgnum:\"1\")) flag++;\n\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:slackware_report_get());\n else security_hole(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-01-06T09:31:37", "description": "An update for mercurial is now available for Red Hat Enterprise Linux\n7.\n\nRed Hat Product Security has rated this update as having a security\nimpact of Important. A Common Vulnerability Scoring System (CVSS) base\nscore, which gives a detailed severity rating, is available for each\nvulnerability from the CVE link(s) in the References section.\n\nMercurial is a fast, lightweight source control management system\ndesigned for efficient handling of very large distributed projects.\n\nSecurity Fix(es) :\n\n* A vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting\nCVE-2017-1000115 and the Subversion Team for reporting\nCVE-2017-1000116.", "edition": 31, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-09-01T00:00:00", "title": "CentOS 7 : mercurial (CESA-2017:2489)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-09-01T00:00:00", "cpe": ["p-cpe:/a:centos:centos:mercurial-hgk", "cpe:/o:centos:centos:7", "p-cpe:/a:centos:centos:emacs-mercurial", "p-cpe:/a:centos:centos:mercurial", "p-cpe:/a:centos:centos:emacs-mercurial-el"], "id": "CENTOS_RHSA-2017-2489.NASL", "href": "https://www.tenable.com/plugins/nessus/102880", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Red Hat Security Advisory RHSA-2017:2489 and \n# CentOS Errata and Security Advisory 2017:2489 respectively.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(102880);\n script_version(\"3.10\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/04\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_xref(name:\"RHSA\", value:\"2017:2489\");\n\n script_name(english:\"CentOS 7 : mercurial (CESA-2017:2489)\");\n script_summary(english:\"Checks rpm output for the updated packages\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote CentOS host is missing one or more security updates.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"An update for mercurial is now available for Red Hat Enterprise Linux\n7.\n\nRed Hat Product Security has rated this update as having a security\nimpact of Important. A Common Vulnerability Scoring System (CVSS) base\nscore, which gives a detailed severity rating, is available for each\nvulnerability from the CVE link(s) in the References section.\n\nMercurial is a fast, lightweight source control management system\ndesigned for efficient handling of very large distributed projects.\n\nSecurity Fix(es) :\n\n* A vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting\nCVE-2017-1000115 and the Subversion Team for reporting\nCVE-2017-1000116.\"\n );\n # https://lists.centos.org/pipermail/centos-cr-announce/2017-August/004690.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?da773d23\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected mercurial packages.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss_temporal_vector(\"CVSS2#E:U/RL:OF/RC:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n script_set_cvss3_temporal_vector(\"CVSS:3.0/E:U/RL:O/RC:C\");\n script_set_attribute(attribute:\"cvss_score_source\", value:\"CVE-2017-1000116\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"No known exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"false\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:centos:centos:emacs-mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:centos:centos:emacs-mercurial-el\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:centos:centos:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:centos:centos:mercurial-hgk\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:centos:centos:7\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/08/31\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/09/01\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"CentOS Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/CentOS/release\", \"Host/CentOS/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/CentOS/release\");\nif (isnull(release) || \"CentOS\" >!< release) audit(AUDIT_OS_NOT, \"CentOS\");\nos_ver = pregmatch(pattern: \"CentOS(?: Linux)? release ([0-9]+)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"CentOS\");\nos_ver = os_ver[1];\nif (! preg(pattern:\"^7([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"CentOS 7.x\", \"CentOS \" + os_ver);\n\nif (!get_kb_item(\"Host/CentOS/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"CentOS\", cpu);\n\n\nflag = 0;\nif (rpm_check(release:\"CentOS-7\", cpu:\"x86_64\", reference:\"emacs-mercurial-2.6.2-8.el7_4\")) flag++;\nif (rpm_check(release:\"CentOS-7\", cpu:\"x86_64\", reference:\"emacs-mercurial-el-2.6.2-8.el7_4\")) flag++;\nif (rpm_check(release:\"CentOS-7\", cpu:\"x86_64\", reference:\"mercurial-2.6.2-8.el7_4\")) flag++;\nif (rpm_check(release:\"CentOS-7\", cpu:\"x86_64\", reference:\"mercurial-hgk-2.6.2-8.el7_4\")) flag++;\n\n\nif (flag)\n{\n cr_plugin_caveat = '\\n' +\n 'NOTE: The security advisory associated with this vulnerability has a\\n' +\n 'fixed package version that may only be available in the continuous\\n' +\n 'release (CR) repository for CentOS, until it is present in the next\\n' +\n 'point release of CentOS.\\n\\n' +\n\n 'If an equal or higher package level does not exist in the baseline\\n' +\n 'repository for your major version of CentOS, then updates from the CR\\n' +\n 'repository will need to be applied in order to address the\\n' +\n 'vulnerability.\\n';\n security_report_v4(\n port : 0,\n severity : SECURITY_HOLE,\n extra : rpm_report_get() + cr_plugin_caveat\n );\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"emacs-mercurial / emacs-mercurial-el / mercurial / mercurial-hgk\");\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-01-07T08:52:34", "description": "According to the versions of the mercurial package installed, the\nEulerOS installation on the remote host is affected by the following\nvulnerabilities :\n\n - A vulnerability was found in the way Mercurial handles\n path auditing and caches the results. An attacker could\n abuse a repository with a series of commits mixing\n symlinks and regular files/directories to trick\n Mercurial into writing outside of a given repository.\n (CVE-2017-1000115)\n\n - A shell command injection flaw related to the handling\n of 'ssh' URLs has been discovered in Mercurial. This\n can be exploited to execute shell commands with the\n privileges of the user running the Mercurial client,\n for example, when performing a 'checkout' or 'update'\n action on a sub-repository within a malicious\n repository or a legitimate repository containing a\n malicious commit. (CVE-2017-1000116)\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the EulerOS security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.", "edition": 27, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-09-11T00:00:00", "title": "EulerOS 2.0 SP1 : mercurial (EulerOS-SA-2017-1217)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-09-11T00:00:00", "cpe": ["p-cpe:/a:huawei:euleros:mercurial", "cpe:/o:huawei:euleros:2.0"], "id": "EULEROS_SA-2017-1217.NASL", "href": "https://www.tenable.com/plugins/nessus/103075", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(103075);\n script_version(\"3.14\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/06\");\n\n script_cve_id(\n \"CVE-2017-1000115\",\n \"CVE-2017-1000116\"\n );\n\n script_name(english:\"EulerOS 2.0 SP1 : mercurial (EulerOS-SA-2017-1217)\");\n script_summary(english:\"Checks the rpm output for the updated packages.\");\n\n script_set_attribute(attribute:\"synopsis\", value:\n\"The remote EulerOS host is missing multiple security updates.\");\n script_set_attribute(attribute:\"description\", value:\n\"According to the versions of the mercurial package installed, the\nEulerOS installation on the remote host is affected by the following\nvulnerabilities :\n\n - A vulnerability was found in the way Mercurial handles\n path auditing and caches the results. An attacker could\n abuse a repository with a series of commits mixing\n symlinks and regular files/directories to trick\n Mercurial into writing outside of a given repository.\n (CVE-2017-1000115)\n\n - A shell command injection flaw related to the handling\n of 'ssh' URLs has been discovered in Mercurial. This\n can be exploited to execute shell commands with the\n privileges of the user running the Mercurial client,\n for example, when performing a 'checkout' or 'update'\n action on a sub-repository within a malicious\n repository or a legitimate repository containing a\n malicious commit. (CVE-2017-1000116)\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the EulerOS security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.\");\n # https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2017-1217\n script_set_attribute(attribute:\"see_also\", value:\"http://www.nessus.org/u?342971da\");\n script_set_attribute(attribute:\"solution\", value:\n\"Update the affected mercurial packages.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss_temporal_vector(\"CVSS2#E:U/RL:OF/RC:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n script_set_cvss3_temporal_vector(\"CVSS:3.0/E:U/RL:O/RC:C\");\n\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/08/29\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/09/11\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:huawei:euleros:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:huawei:euleros:2.0\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_family(english:\"Huawei Local Security Checks\");\n\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/EulerOS/release\", \"Host/EulerOS/rpm-list\", \"Host/EulerOS/sp\");\n script_exclude_keys(\"Host/EulerOS/uvp_version\");\n\n exit(0);\n}\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\n\nrelease = get_kb_item(\"Host/EulerOS/release\");\nif (isnull(release) || release !~ \"^EulerOS\") audit(AUDIT_OS_NOT, \"EulerOS\");\nif (release !~ \"^EulerOS release 2\\.0(\\D|$)\") audit(AUDIT_OS_NOT, \"EulerOS 2.0\");\n\nsp = get_kb_item(\"Host/EulerOS/sp\");\nif (isnull(sp) || sp !~ \"^(1)$\") audit(AUDIT_OS_NOT, \"EulerOS 2.0 SP1\");\n\nuvp = get_kb_item(\"Host/EulerOS/uvp_version\");\nif (!empty_or_null(uvp)) audit(AUDIT_OS_NOT, \"EulerOS 2.0 SP1\", \"EulerOS UVP \" + uvp);\n\nif (!get_kb_item(\"Host/EulerOS/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\" && \"aarch64\" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"EulerOS\", cpu);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_ARCH_NOT, \"i686 / x86_64\", cpu);\n\nflag = 0;\n\npkgs = [\"mercurial-2.6.2-8\"];\n\nforeach (pkg in pkgs)\n if (rpm_check(release:\"EulerOS-2.0\", sp:\"1\", reference:pkg)) flag++;\n\nif (flag)\n{\n security_report_v4(\n port : 0,\n severity : SECURITY_HOLE,\n extra : rpm_report_get()\n );\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"mercurial\");\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-03-01T01:22:52", "description": "A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nA vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)", "edition": 29, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-09-15T00:00:00", "title": "Amazon Linux AMI : mercurial (ALAS-2017-893)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2021-03-02T00:00:00", "cpe": ["p-cpe:/a:amazon:linux:mercurial-debuginfo", "p-cpe:/a:amazon:linux:mercurial-python26", "p-cpe:/a:amazon:linux:mercurial-python27", "p-cpe:/a:amazon:linux:emacs-mercurial", "p-cpe:/a:amazon:linux:mercurial-common", "p-cpe:/a:amazon:linux:emacs-mercurial-el", "cpe:/o:amazon:linux"], "id": "ALA_ALAS-2017-893.NASL", "href": "https://www.tenable.com/plugins/nessus/103227", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were\n# extracted from Amazon Linux AMI Security Advisory ALAS-2017-893.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(103227);\n script_version(\"3.5\");\n script_cvs_date(\"Date: 2019/05/13 11:02:56\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_xref(name:\"ALAS\", value:\"2017-893\");\n\n script_name(english:\"Amazon Linux AMI : mercurial (ALAS-2017-893)\");\n script_summary(english:\"Checks rpm output for the updated packages\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Amazon Linux AMI host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nA vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://alas.aws.amazon.com/ALAS-2017-893.html\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Run 'yum update mercurial' to update your system.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:amazon:linux:emacs-mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:amazon:linux:emacs-mercurial-el\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:amazon:linux:mercurial-common\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:amazon:linux:mercurial-debuginfo\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:amazon:linux:mercurial-python26\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:amazon:linux:mercurial-python27\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:amazon:linux\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/09/14\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/09/15\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"Amazon Linux Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/AmazonLinux/release\", \"Host/AmazonLinux/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\n\nrelease = get_kb_item(\"Host/AmazonLinux/release\");\nif (isnull(release) || !strlen(release)) audit(AUDIT_OS_NOT, \"Amazon Linux\");\nos_ver = pregmatch(pattern: \"^AL(A|\\d)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Amazon Linux\");\nos_ver = os_ver[1];\nif (os_ver != \"A\")\n{\n if (os_ver == 'A') os_ver = 'AMI';\n audit(AUDIT_OS_NOT, \"Amazon Linux AMI\", \"Amazon Linux \" + os_ver);\n}\n\nif (!get_kb_item(\"Host/AmazonLinux/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\nif (rpm_check(release:\"ALA\", reference:\"emacs-mercurial-4.2.3-1.29.amzn1\")) flag++;\nif (rpm_check(release:\"ALA\", reference:\"emacs-mercurial-el-4.2.3-1.29.amzn1\")) flag++;\nif (rpm_check(release:\"ALA\", reference:\"mercurial-common-4.2.3-1.29.amzn1\")) flag++;\nif (rpm_check(release:\"ALA\", reference:\"mercurial-debuginfo-4.2.3-1.29.amzn1\")) flag++;\nif (rpm_check(release:\"ALA\", reference:\"mercurial-python26-4.2.3-1.29.amzn1\")) flag++;\nif (rpm_check(release:\"ALA\", reference:\"mercurial-python27-4.2.3-1.29.amzn1\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());\n else security_hole(0);\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"emacs-mercurial / emacs-mercurial-el / mercurial-common / etc\");\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-03-01T05:40:11", "description": "An update for mercurial is now available for Red Hat Enterprise Linux\n7.\n\nRed Hat Product Security has rated this update as having a security\nimpact of Important. A Common Vulnerability Scoring System (CVSS) base\nscore, which gives a detailed severity rating, is available for each\nvulnerability from the CVE link(s) in the References section.\n\nMercurial is a fast, lightweight source control management system\ndesigned for efficient handling of very large distributed projects.\n\nSecurity Fix(es) :\n\n* A vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting\nCVE-2017-1000115 and the Subversion Team for reporting\nCVE-2017-1000116.", "edition": 34, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-08-18T00:00:00", "title": "RHEL 7 : mercurial (RHSA-2017:2489)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2021-03-02T00:00:00", "cpe": ["p-cpe:/a:redhat:enterprise_linux:emacs-mercurial", "p-cpe:/a:redhat:enterprise_linux:emacs-mercurial-el", "cpe:/o:redhat:enterprise_linux:7.4", "cpe:/o:redhat:enterprise_linux:7.7", "cpe:/o:redhat:enterprise_linux:7.5", "cpe:/o:redhat:enterprise_linux:7", "p-cpe:/a:redhat:enterprise_linux:mercurial-hgk", "p-cpe:/a:redhat:enterprise_linux:mercurial-debuginfo", "cpe:/o:redhat:enterprise_linux:7.6", "p-cpe:/a:redhat:enterprise_linux:mercurial"], "id": "REDHAT-RHSA-2017-2489.NASL", "href": "https://www.tenable.com/plugins/nessus/102575", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Red Hat Security Advisory RHSA-2017:2489. The text \n# itself is copyright (C) Red Hat, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(102575);\n script_version(\"3.14\");\n script_cvs_date(\"Date: 2019/10/24 15:35:43\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_xref(name:\"RHSA\", value:\"2017:2489\");\n\n script_name(english:\"RHEL 7 : mercurial (RHSA-2017:2489)\");\n script_summary(english:\"Checks the rpm output for the updated packages\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Red Hat host is missing one or more security updates.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"An update for mercurial is now available for Red Hat Enterprise Linux\n7.\n\nRed Hat Product Security has rated this update as having a security\nimpact of Important. A Common Vulnerability Scoring System (CVSS) base\nscore, which gives a detailed severity rating, is available for each\nvulnerability from the CVE link(s) in the References section.\n\nMercurial is a fast, lightweight source control management system\ndesigned for efficient handling of very large distributed projects.\n\nSecurity Fix(es) :\n\n* A vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting\nCVE-2017-1000115 and the Subversion Team for reporting\nCVE-2017-1000116.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://access.redhat.com/errata/RHSA-2017:2489\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://access.redhat.com/security/cve/cve-2017-1000115\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://access.redhat.com/security/cve/cve-2017-1000116\"\n );\n script_set_attribute(attribute:\"solution\", value:\"Update the affected packages.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss_temporal_vector(\"CVSS2#E:U/RL:OF/RC:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n script_set_cvss3_temporal_vector(\"CVSS:3.0/E:U/RL:O/RC:C\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"No known exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"false\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:redhat:enterprise_linux:emacs-mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:redhat:enterprise_linux:emacs-mercurial-el\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:redhat:enterprise_linux:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:redhat:enterprise_linux:mercurial-debuginfo\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:redhat:enterprise_linux:mercurial-hgk\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:redhat:enterprise_linux:7\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:redhat:enterprise_linux:7.4\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:redhat:enterprise_linux:7.5\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:redhat:enterprise_linux:7.6\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:redhat:enterprise_linux:7.7\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/08/17\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/08/18\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"Red Hat Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/RedHat/release\", \"Host/RedHat/rpm-list\", \"Host/cpu\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"misc_func.inc\");\ninclude(\"rpm.inc\");\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/RedHat/release\");\nif (isnull(release) || \"Red Hat\" >!< release) audit(AUDIT_OS_NOT, \"Red Hat\");\nos_ver = pregmatch(pattern: \"Red Hat Enterprise Linux.*release ([0-9]+(\\.[0-9]+)?)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Red Hat\");\nos_ver = os_ver[1];\nif (! preg(pattern:\"^7([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"Red Hat 7.x\", \"Red Hat \" + os_ver);\n\nif (!get_kb_item(\"Host/RedHat/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\" && \"s390\" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Red Hat\", cpu);\n\nyum_updateinfo = get_kb_item(\"Host/RedHat/yum-updateinfo\");\nif (!empty_or_null(yum_updateinfo)) \n{\n rhsa = \"RHSA-2017:2489\";\n yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);\n if (!empty_or_null(yum_report))\n {\n security_report_v4(\n port : 0,\n severity : SECURITY_HOLE,\n extra : yum_report \n );\n exit(0);\n }\n else\n {\n audit_message = \"affected by Red Hat security advisory \" + rhsa;\n audit(AUDIT_OS_NOT, audit_message);\n }\n}\nelse\n{\n flag = 0;\n if (rpm_check(release:\"RHEL7\", cpu:\"s390x\", reference:\"emacs-mercurial-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"x86_64\", reference:\"emacs-mercurial-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"s390x\", reference:\"emacs-mercurial-el-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"x86_64\", reference:\"emacs-mercurial-el-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"s390x\", reference:\"mercurial-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"x86_64\", reference:\"mercurial-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"s390x\", reference:\"mercurial-debuginfo-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"x86_64\", reference:\"mercurial-debuginfo-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"s390x\", reference:\"mercurial-hgk-2.6.2-8.el7_4\")) flag++;\n\n if (rpm_check(release:\"RHEL7\", cpu:\"x86_64\", reference:\"mercurial-hgk-2.6.2-8.el7_4\")) flag++;\n\n\n if (flag)\n {\n security_report_v4(\n port : 0,\n severity : SECURITY_HOLE,\n extra : rpm_report_get() + redhat_report_package_caveat()\n );\n exit(0);\n }\n else\n {\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"emacs-mercurial / emacs-mercurial-el / mercurial / etc\");\n }\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-01-17T12:51:45", "description": "From Red Hat Security Advisory 2017:2489 :\n\nAn update for mercurial is now available for Red Hat Enterprise Linux\n7.\n\nRed Hat Product Security has rated this update as having a security\nimpact of Important. A Common Vulnerability Scoring System (CVSS) base\nscore, which gives a detailed severity rating, is available for each\nvulnerability from the CVE link(s) in the References section.\n\nMercurial is a fast, lightweight source control management system\ndesigned for efficient handling of very large distributed projects.\n\nSecurity Fix(es) :\n\n* A vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting\nCVE-2017-1000115 and the Subversion Team for reporting\nCVE-2017-1000116.", "edition": 29, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-08-18T00:00:00", "title": "Oracle Linux 7 : mercurial (ELSA-2017-2489)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-08-18T00:00:00", "cpe": ["p-cpe:/a:oracle:linux:emacs-mercurial", "p-cpe:/a:oracle:linux:emacs-mercurial-el", "p-cpe:/a:oracle:linux:mercurial-hgk", "p-cpe:/a:oracle:linux:mercurial", "cpe:/o:oracle:linux:7"], "id": "ORACLELINUX_ELSA-2017-2489.NASL", "href": "https://www.tenable.com/plugins/nessus/102571", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were\n# extracted from Red Hat Security Advisory RHSA-2017:2489 and \n# Oracle Linux Security Advisory ELSA-2017-2489 respectively.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(102571);\n script_version(\"3.9\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/14\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_xref(name:\"RHSA\", value:\"2017:2489\");\n\n script_name(english:\"Oracle Linux 7 : mercurial (ELSA-2017-2489)\");\n script_summary(english:\"Checks rpm output for the updated packages\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Oracle Linux host is missing one or more security updates.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"From Red Hat Security Advisory 2017:2489 :\n\nAn update for mercurial is now available for Red Hat Enterprise Linux\n7.\n\nRed Hat Product Security has rated this update as having a security\nimpact of Important. A Common Vulnerability Scoring System (CVSS) base\nscore, which gives a detailed severity rating, is available for each\nvulnerability from the CVE link(s) in the References section.\n\nMercurial is a fast, lightweight source control management system\ndesigned for efficient handling of very large distributed projects.\n\nSecurity Fix(es) :\n\n* A vulnerability was found in the way Mercurial handles path auditing\nand caches the results. An attacker could abuse a repository with a\nseries of commits mixing symlinks and regular files/directories to\ntrick Mercurial into writing outside of a given repository.\n(CVE-2017-1000115)\n\n* A shell command injection flaw related to the handling of 'ssh' URLs\nhas been discovered in Mercurial. This can be exploited to execute\nshell commands with the privileges of the user running the Mercurial\nclient, for example, when performing a 'checkout' or 'update' action\non a sub-repository within a malicious repository or a legitimate\nrepository containing a malicious commit. (CVE-2017-1000116)\n\nRed Hat would like to thank the Mercurial Security Team for reporting\nCVE-2017-1000115 and the Subversion Team for reporting\nCVE-2017-1000116.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://oss.oracle.com/pipermail/el-errata/2017-August/007138.html\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected mercurial packages.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss_temporal_vector(\"CVSS2#E:U/RL:OF/RC:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n script_set_cvss3_temporal_vector(\"CVSS:3.0/E:U/RL:O/RC:C\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"No known exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"false\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:oracle:linux:emacs-mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:oracle:linux:emacs-mercurial-el\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:oracle:linux:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:oracle:linux:mercurial-hgk\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:oracle:linux:7\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/08/17\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/08/18\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"Oracle Linux Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/OracleLinux\", \"Host/RedHat/release\", \"Host/RedHat/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/OracleLinux\")) audit(AUDIT_OS_NOT, \"Oracle Linux\");\nrelease = get_kb_item(\"Host/RedHat/release\");\nif (isnull(release) || !pregmatch(pattern: \"Oracle (?:Linux Server|Enterprise Linux)\", string:release)) audit(AUDIT_OS_NOT, \"Oracle Linux\");\nos_ver = pregmatch(pattern: \"Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\\.[0-9]+)?)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Oracle Linux\");\nos_ver = os_ver[1];\nif (! preg(pattern:\"^7([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"Oracle Linux 7\", \"Oracle Linux \" + os_ver);\n\nif (!get_kb_item(\"Host/RedHat/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Oracle Linux\", cpu);\nif (\"x86_64\" >!< cpu) audit(AUDIT_ARCH_NOT, \"x86_64\", cpu);\n\nflag = 0;\nif (rpm_check(release:\"EL7\", cpu:\"x86_64\", reference:\"emacs-mercurial-2.6.2-8.el7_4\")) flag++;\nif (rpm_check(release:\"EL7\", cpu:\"x86_64\", reference:\"emacs-mercurial-el-2.6.2-8.el7_4\")) flag++;\nif (rpm_check(release:\"EL7\", cpu:\"x86_64\", reference:\"mercurial-2.6.2-8.el7_4\")) flag++;\nif (rpm_check(release:\"EL7\", cpu:\"x86_64\", reference:\"mercurial-hgk-2.6.2-8.el7_4\")) flag++;\n\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());\n else security_hole(0);\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"emacs-mercurial / emacs-mercurial-el / mercurial / mercurial-hgk\");\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-01-20T12:33:29", "description": "This update for mercurial fixes the following issues :\n\nMercurial was updated to 4.2.3, a security fix update for \n\n - CVE-2017-1000115: Incomplete symlink auditing allowed\n writing to files outside of the repository (boo#1053344)\n\n - CVE-2017-1000116: Client-side code execution via\n argument injection in SSH URLs (boo#1052696)", "edition": 20, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-08-18T00:00:00", "title": "openSUSE Security Update : mercurial (openSUSE-2017-941)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-08-18T00:00:00", "cpe": ["p-cpe:/a:novell:opensuse:mercurial-debugsource", "p-cpe:/a:novell:opensuse:mercurial-debuginfo", "p-cpe:/a:novell:opensuse:mercurial", "p-cpe:/a:novell:opensuse:mercurial-lang", "cpe:/o:novell:opensuse:42.3", "cpe:/o:novell:opensuse:42.2"], "id": "OPENSUSE-2017-941.NASL", "href": "https://www.tenable.com/plugins/nessus/102560", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were\n# extracted from openSUSE Security Update openSUSE-2017-941.\n#\n# The text description of this plugin is (C) SUSE LLC.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(102560);\n script_version(\"3.6\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/19\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n\n script_name(english:\"openSUSE Security Update : mercurial (openSUSE-2017-941)\");\n script_summary(english:\"Check for the openSUSE-2017-941 patch\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote openSUSE host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"This update for mercurial fixes the following issues :\n\nMercurial was updated to 4.2.3, a security fix update for \n\n - CVE-2017-1000115: Incomplete symlink auditing allowed\n writing to files outside of the repository (boo#1053344)\n\n - CVE-2017-1000116: Client-side code execution via\n argument injection in SSH URLs (boo#1052696)\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.opensuse.org/show_bug.cgi?id=1052696\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.opensuse.org/show_bug.cgi?id=1053344\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected mercurial packages.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:novell:opensuse:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:novell:opensuse:mercurial-debuginfo\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:novell:opensuse:mercurial-debugsource\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:novell:opensuse:mercurial-lang\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:novell:opensuse:42.2\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:novell:opensuse:42.3\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/08/16\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/08/18\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"SuSE Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/SuSE/release\", \"Host/SuSE/rpm-list\", \"Host/cpu\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/SuSE/release\");\nif (isnull(release) || release =~ \"^(SLED|SLES)\") audit(AUDIT_OS_NOT, \"openSUSE\");\nif (release !~ \"^(SUSE42\\.2|SUSE42\\.3)$\") audit(AUDIT_OS_RELEASE_NOT, \"openSUSE\", \"42.2 / 42.3\", release);\nif (!get_kb_item(\"Host/SuSE/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\nourarch = get_kb_item(\"Host/cpu\");\nif (!ourarch) audit(AUDIT_UNKNOWN_ARCH);\nif (ourarch !~ \"^(i586|i686|x86_64)$\") audit(AUDIT_ARCH_NOT, \"i586 / i686 / x86_64\", ourarch);\n\nflag = 0;\n\nif ( rpm_check(release:\"SUSE42.2\", reference:\"mercurial-3.8.3-2.8.1\") ) flag++;\nif ( rpm_check(release:\"SUSE42.2\", reference:\"mercurial-debuginfo-3.8.3-2.8.1\") ) flag++;\nif ( rpm_check(release:\"SUSE42.2\", reference:\"mercurial-debugsource-3.8.3-2.8.1\") ) flag++;\nif ( rpm_check(release:\"SUSE42.2\", reference:\"mercurial-lang-3.8.3-2.8.1\") ) flag++;\nif ( rpm_check(release:\"SUSE42.3\", reference:\"mercurial-4.2.3-4.1\") ) flag++;\nif ( rpm_check(release:\"SUSE42.3\", reference:\"mercurial-debuginfo-4.2.3-4.1\") ) flag++;\nif ( rpm_check(release:\"SUSE42.3\", reference:\"mercurial-debugsource-4.2.3-4.1\") ) flag++;\nif ( rpm_check(release:\"SUSE42.3\", reference:\"mercurial-lang-4.2.3-4.1\") ) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());\n else security_hole(0);\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"mercurial / mercurial-debuginfo / mercurial-debugsource / etc\");\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2021-01-07T10:15:18", "description": "Security fix for CVE-2017-1000115, CVE-2017-1000116\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora update system website.\nTenable has attempted to automatically clean and format it as much as\npossible without introducing additional issues.", "edition": 20, "cvss3": {"score": 9.8, "vector": "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "published": "2017-09-29T00:00:00", "title": "Fedora 25 : mercurial (2017-fa1d8ad61a)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116"], "modified": "2017-09-29T00:00:00", "cpe": ["cpe:/o:fedoraproject:fedora:25", "p-cpe:/a:fedoraproject:fedora:mercurial"], "id": "FEDORA_2017-FA1D8AD61A.NASL", "href": "https://www.tenable.com/plugins/nessus/103554", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Fedora Security Advisory FEDORA-2017-fa1d8ad61a.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(103554);\n script_version(\"3.7\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/06\");\n\n script_cve_id(\"CVE-2017-1000115\", \"CVE-2017-1000116\");\n script_xref(name:\"FEDORA\", value:\"2017-fa1d8ad61a\");\n\n script_name(english:\"Fedora 25 : mercurial (2017-fa1d8ad61a)\");\n script_summary(english:\"Checks rpm output for the updated package.\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Fedora host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Security fix for CVE-2017-1000115, CVE-2017-1000116\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora update system website.\nTenable has attempted to automatically clean and format it as much as\npossible without introducing additional issues.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bodhi.fedoraproject.org/updates/FEDORA-2017-fa1d8ad61a\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected mercurial package.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:fedoraproject:fedora:mercurial\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:fedoraproject:fedora:25\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2017/10/05\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2017/09/28\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2017/09/29\");\n script_set_attribute(attribute:\"generated_plugin\", value:\"current\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"Fedora Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/RedHat/release\", \"Host/RedHat/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/RedHat/release\");\nif (isnull(release) || \"Fedora\" >!< release) audit(AUDIT_OS_NOT, \"Fedora\");\nos_ver = pregmatch(pattern: \"Fedora.*release ([0-9]+)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Fedora\");\nos_ver = os_ver[1];\nif (! preg(pattern:\"^25([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"Fedora 25\", \"Fedora \" + os_ver);\n\nif (!get_kb_item(\"Host/RedHat/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Fedora\", cpu);\n\n\nflag = 0;\nif (rpm_check(release:\"FC25\", reference:\"mercurial-3.8.1-4.fc25\")) flag++;\n\n\nif (flag)\n{\n security_report_v4(\n port : 0,\n severity : SECURITY_HOLE,\n extra : rpm_report_get()\n );\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"mercurial\");\n}\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "debian": [{"lastseen": "2020-08-12T01:05:15", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-9462", "CVE-2017-1000116"], "description": "- -------------------------------------------------------------------------\nDebian Security Advisory DSA-3963-1 security@debian.org\nhttps://www.debian.org/security/ Sebastien Delafond\nSeptember 04, 2017 https://www.debian.org/security/faq\n- -------------------------------------------------------------------------\n\nPackage : mercurial\nCVE ID : CVE-2017-9462 CVE-2017-1000115 CVE-2017-1000116\nDebian Bug : 861243 871709 871710\n\nSeveral issues were discovered in Mercurial, a distributed revision\ncontrol system.\n\nCVE-2017-9462 (fixed in stretch only)\n\n Jonathan Claudius of Mozilla discovered that repositories served\n over stdio could be tricked into granting authorized users access to\n the Python debugger.\n\nCVE-2017-1000115\n\n Mercurial's symlink auditing was incomplete, and could be abused to\n write files outside the repository.\n\nCVE-2017-1000116\n\n Joern Schneeweisz discovered that Mercurial did not correctly handle\n maliciously constructed ssh:// URLs. This allowed an attacker to run\n an arbitrary shell command.\n\nFor the oldstable distribution (jessie), these problems have been fixed\nin version 3.1.2-2+deb8u4.\n\nFor the stable distribution (stretch), these problems have been fixed in\nversion 4.0-1+deb9u1.\n\nWe recommend that you upgrade your mercurial packages.\n\nFurther information about Debian Security Advisories, how to apply\nthese updates to your system and frequently asked questions can be\nfound at: https://www.debian.org/security/\n\nMailing list: debian-security-announce@lists.debian.org\n", "edition": 11, "modified": "2017-09-04T07:05:37", "published": "2017-09-04T07:05:37", "id": "DEBIAN:DSA-3963-1:CD9EC", "href": "https://lists.debian.org/debian-security-announce/debian-security-announce-2017/msg00225.html", "title": "[SECURITY] [DSA 3963-1] mercurial security update", "type": "debian", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2019-05-30T02:21:32", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000117", "CVE-2017-1000116", "CVE-2017-9800"], "description": "Package : mercurial\nVersion : 2.2.2-4+deb7u5\nCVE ID : CVE-2017-1000115 CVE-2017-1000116\nDebian Bug : 871709 871710\n\nTwo significant vulnerabilities were found in the Mercurial version\ncontrol system which could lead to shell injection attacks and\nout-of-tree file overwrite.\n\nCVE-2017-1000115\n\n Mercurial's symlink auditing was incomplete prior to 4.3, and\n could be abused to write to files outside the repository.\n\nCVE-2017-1000116\n\n Mercurial was not sanitizing hostnames passed to ssh, allowing\n shell injection attacks on clients by specifying a hostname\n starting with -oProxyCommand. This vulnerability is similar to\n those in Git (CVE-2017-1000117) and Subversion (CVE-2017-9800).\n\nFor Debian 7 "Wheezy", these problems have been fixed in version\n2.2.2-4+deb7u5.\n\nWe recommend that you upgrade your mercurial packages.\n\nFurther information about Debian LTS security advisories, how to apply\nthese updates to your system and frequently asked questions can be\nfound at: https://wiki.debian.org/LTS\n", "edition": 4, "modified": "2017-08-31T11:57:46", "published": "2017-08-31T11:57:46", "id": "DEBIAN:DLA-1072-1:C63A2", "href": "https://lists.debian.org/debian-lts-announce/2017/debian-lts-announce-201708/msg00032.html", "title": "[SECURITY] [DLA 1072-1] mercurial security update", "type": "debian", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2019-05-30T02:22:41", "bulletinFamily": "unix", "cvelist": ["CVE-2017-12976", "CVE-2017-1000117", "CVE-2017-1000116", "CVE-2017-12836", "CVE-2017-9800"], "description": "Package : git-annex\nVersion : 3.20120629+deb7u1\nCVE ID : CVE-2017-12976\nDebian Bug : 873088\n\ngit-annex before 6.20170818 allows remote attackers to execute arbitrary\ncommands via an ssh URL with an initial dash character in the hostname,\nas demonstrated by an ssh://-eProxyCommand= URL, a related issue to\nCVE-2017-9800, CVE-2017-12836, CVE-2017-1000116, and CVE-2017-1000117.\n\nFor Debian 7 "Wheezy", these problems have been fixed in version\n3.20120629+deb7u1.\n\nWe recommend that you upgrade your git-annex packages.\n\nFurther information about Debian LTS security advisories, how to apply\nthese updates to your system and frequently asked questions can be\nfound at: https://wiki.debian.org/LTS\n", "edition": 3, "modified": "2017-10-27T15:29:42", "published": "2017-10-27T15:29:42", "id": "DEBIAN:DLA-1144-1:E0FFD", "href": "https://lists.debian.org/debian-lts-announce/2017/debian-lts-announce-201710/msg00026.html", "title": "[SECURITY] [DLA 1144-1] git-annex security update", "type": "debian", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2019-05-30T02:22:42", "bulletinFamily": "unix", "cvelist": ["CVE-2018-10859", "CVE-2017-12976", "CVE-2017-1000117", "CVE-2017-1000116", "CVE-2017-12836", "CVE-2018-10857", "CVE-2017-9800"], "description": "Package : git-annex\nVersion : 5.20141125+oops-1+deb8u2\nCVE ID : CVE-2017-12976 CVE-2018-10857 CVE-2018-10859\nDebian Bug : 873088\n\nThe git-annex package was found to have multiple vulnerabilities when\noperating on untrusted data that could lead to arbitrary command\nexecution and encrypted data exfiltration.\n\nCVE-2017-12976\n\n git-annex before 6.20170818 allows remote attackers to execute\n arbitrary commands via an ssh URL with an initial dash character\n in the hostname, as demonstrated by an ssh://-eProxyCommand= URL,\n a related issue to CVE-2017-9800, CVE-2017-12836,\n CVE-2017-1000116, and CVE-2017-1000117.\n\nCVE-2018-10857\n\n git-annex is vulnerable to a private data exposure and\n exfiltration attack. It could expose the content of files located\n outside the git-annex repository, or content from a private web\n server on localhost or the LAN.\n\nCVE-2018-10859\n\n git-annex is vulnerable to an Information Exposure when decrypting\n files. A malicious server for a special remote could trick\n git-annex into decrypting a file that was encrypted to the user's\n gpg key. This attack could be used to expose encrypted data that\n was never stored in git-annex\n\nFor Debian 8 "Jessie", these problems have been fixed in version\n5.20141125+oops-1+deb8u2.\n\nWe recommend that you upgrade your git-annex packages.\n\nFurther information about Debian LTS security advisories, how to apply\nthese updates to your system and frequently asked questions can be\nfound at: https://wiki.debian.org/LTS\n", "edition": 3, "modified": "2018-09-05T19:29:11", "published": "2018-09-05T19:29:11", "id": "DEBIAN:DLA-1495-1:43D4C", "href": "https://lists.debian.org/debian-lts-announce/2018/debian-lts-announce-201809/msg00004.html", "title": "[SECURITY] [DLA 1495-1] git-annex security update", "type": "debian", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "gentoo": [{"lastseen": "2017-09-24T19:45:04", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-9462", "CVE-2017-1000116"], "description": "### Background\n\nMercurial is a distributed source control management system.\n\n### Description\n\nMultiple vulnerabilities have been discovered in Mercurial. Please review the referenced CVE identifiers for details. \n\n### Impact\n\nA remote attacker could possibly execute arbitrary code with the privileges of the process. \n\n### Workaround\n\nThere is no known workaround at this time.\n\n### Resolution\n\nAll Mercurial users should upgrade to the latest version:\n \n \n # emerge --sync\n # emerge --ask --oneshot --verbose \">=dev-vcs/mercurial-4.3\"", "edition": 1, "modified": "2017-09-24T00:00:00", "published": "2017-09-24T00:00:00", "href": "https://security.gentoo.org/glsa/201709-18", "id": "GLSA-201709-18", "title": "Mercurial: Multiple vulnerabilities", "type": "gentoo", "cvss": {"score": 9.0, "vector": "AV:NETWORK/AC:LOW/Au:SINGLE_INSTANCE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}}], "archlinux": [{"lastseen": "2020-09-22T18:36:43", "bulletinFamily": "unix", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000116", "CVE-2017-1000117", "CVE-2017-9800"], "description": "Arch Linux Security Advisory ASA-201708-7\n=========================================\n\nSeverity: Critical\nDate : 2017-08-12\nCVE-ID : CVE-2017-1000115 CVE-2017-1000116\nPackage : mercurial\nType : multiple issues\nRemote : Yes\nLink : https://security.archlinux.org/AVG-378\n\nSummary\n=======\n\nThe package mercurial before version 4.2.3-1 is vulnerable to multiple\nissues including arbitrary command execution and arbitrary filesystem\naccess.\n\nResolution\n==========\n\nUpgrade to 4.2.3-1.\n\n# pacman -Syu \"mercurial>=4.2.3-1\"\n\nThe problems have been fixed upstream in version 4.2.3.\n\nWorkaround\n==========\n\nNone.\n\nDescription\n===========\n\n- CVE-2017-1000115 (arbitrary filesystem access)\n\nMercurial's symlink auditing was incomplete prior to 4.3, and could be\nabused to write to files outside the repository.\n\n- CVE-2017-1000116 (arbitrary command execution)\n\nMercurial < 4.3 was not sanitizing hostnames passed to ssh, allowing\nshell injection attacks on clients by specifying a hostname starting\nwith -oProxyCommand. This is also present in Git (CVE-2017-1000117) and\nSubversion (CVE-2017-9800), so please patch those tools as well if you\nhave them installed.\n\nImpact\n======\n\nA remote attacker can execute arbitrary command on the affected host by\ntricking a user into executing a hg command. A remote attacker can use\ncrafted commits mixing symlinks and regular files to get access to\nfiles outside the repository.\n\nReferences\n==========\n\nhttps://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.282017-08-10.29\nhttps://security.archlinux.org/CVE-2017-1000115\nhttps://security.archlinux.org/CVE-2017-1000116", "modified": "2017-08-12T00:00:00", "published": "2017-08-12T00:00:00", "id": "ASA-201708-7", "href": "https://security.archlinux.org/ASA-201708-7", "type": "archlinux", "title": "[ASA-201708-7] mercurial: multiple issues", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "myhack58": [{"lastseen": "2017-08-11T15:16:34", "bulletinFamily": "info", "cvelist": ["CVE-2017-1000115", "CVE-2017-1000117", "CVE-2017-9800"], "edition": 1, "description": "Around the world programmers Please Note, You must now immediately updates your version control system, Git, SVN, Mercurial open-source version control system recently to fix critical security vulnerabilities, the delay in the upgrade, you will be affected by the vulnerability. \nMore mainstream version control system there is a client arbitrary code execution vulnerability \nThree mainstream source version control systems Git, Subversion (svn), and Mercurial, today released the Update Patch fixes a client-side code execution vulnerability. \nThe vulnerability by GitLab Brian Neel, the Recurity Labs of Joan Schneeweiss and GitHub's Jeff King to find and report. \nApplied to the Linux kernel, GitHub, and Gitlab behind the open-source version control system Git. Today released a more updated version, Git v2. 14. 1, The 2.7.6, v2. 8. 6, v2. 9. 5, v2. 10. 4, v2. 11. 3, v2. 12. 4 and v2. 13. 5, is used to fix the vulnerability. \n\u201cThis update fixes a number of CVE-2017-1000117 vulnerabilities, with Subversion and Mercurial maintainers coordination, publishing, sharing this similar problem.\u201d Git maintainer Junio Hamano on the mailing list writes. \nExploit \nThe vulnerability requires a combination of some social engineering skills to better use. \nGit in its Bulletin warning:\u201ca malicious attacker can send the victim to send a carefully constructed ssh:// URL link, when the victim visits this URL it will trigger the vulnerability lead to execution of malicious code.\u201d The \nThe attacker carefully constructs a\"ssh://...\"URL to send the link to the victim, if the victim visits this URL, it will lead to malicious instructions on the client implementation. \nThe malicious URL can be placed in the project\". gitmodules\"file in the victim to perform the\u201cgit clone --recurse-submodules\u201dit will trigger the vulnerability. \nApache Subversion\uff08SVN\uff091.9.7 patch for CVE-2017-9800 problem, it is with Git, the patched content is similar. \n\u201cIn the svn:externals and svn:sync-from-url by constructing a malicious svn+ssh URL causes the client to arbitrary code execution\u201din the SVN updates fix the security issues. \nOpen source Mercurial version control system in 4. 3 and 4. 2. 3 fixes the vulnerability, the vulnerability number CVE-2017-1000115\u3002 \nExploit demo screenshots \n! [](/Article/UploadPic/2017-8/201781119250772. png? www. myhack58. com)\n", "modified": "2017-08-11T00:00:00", "published": "2017-08-11T00:00:00", "id": "MYHACK58:62201788524", "href": "http://www.myhack58.com/Article/html/3/62/2017/88524.htm", "title": "More mainstream version control system was traced to the presence of the client arbitrary code execution vulnerability-vulnerability warning-the black bar safety net", "type": "myhack58", "cvss": {"score": 0.0, "vector": "NONE"}}], "hackerone": [{"lastseen": "2018-08-31T00:39:13", "bulletinFamily": "bugbounty", "bounty": 3000.0, "cvelist": ["CVE-2017-1000117", "CVE-2017-1000116", "CVE-2017-9800"], "description": "I'd like to submit an RCE issue within Git SVN and Mercurial, the CVEs are:\n\n* CVE-2017-9800 (Subversion)\n* CVE-2017-1000116 (Mercurial (hg))\n* CVE-2017-1000117 (Git)\n\nFurther Info can be found at:\n\nhttp://blog.recurity-labs.com/2017-08-10/scm-vulns\n\nAnd product specific:\n\n* https://public-inbox.org/git/xmqqh8xf482j.fsf@gitster.mtv.corp.google.com/T/#u\n* http://subversion.apache.org/security/CVE-2017-9800-advisory.txt\n* https://about.gitlab.com/2017/08/10/gitlab-9-dot-4-dot-4-released/\n\nI think these issues which all are based on the same flaw could be worth\nan IBB Bounty. However I'd like to point out that we at Recurity Labs\nwould like the bounty being donated to a charity. The to be determined\ncharity will be something in the field of brain aneurysm, this is due to\nthe fact that Felix, the founder of Recurity Labs, currently is\nrecovering from a brain aneurysm.\n\n\nSo, just let us know what you think about this.\n\nCheers,\n\njoern\n\nP.S. I took the CVSS Score from the Subversion Advisory\nthe Redhat advisory states a score of 6.3 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L) I guess the truth is somewhere in between.", "modified": "2017-09-21T16:21:35", "published": "2017-08-14T20:53:18", "id": "H1:260005", "href": "https://hackerone.com/reports/260005", "type": "hackerone", "title": "The Internet: RCE via ssh:// URIs in multiple VCS ", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}]}