7.8 High
CVSS3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
7.1 High
AI Score
Confidence
Low
7.2 High
CVSS2
Access Vector
LOCAL
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:L/AC:L/Au:N/C:C/I:C/A:C
0.005 Low
EPSS
Percentile
76.6%
Pi-hole Core is prone to multiple privilege escalation
vulnerabilities.
# SPDX-FileCopyrightText: 2021 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:pi-hole:pi-hole";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.117325");
script_version("2023-12-01T05:05:39+0000");
script_tag(name:"last_modification", value:"2023-12-01 05:05:39 +0000 (Fri, 01 Dec 2023)");
script_tag(name:"creation_date", value:"2021-04-16 09:21:07 +0000 (Fri, 16 Apr 2021)");
script_tag(name:"cvss_base", value:"7.2");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2021-04-27 18:41:00 +0000 (Tue, 27 Apr 2021)");
script_cve_id("CVE-2021-29449");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"VendorFix");
script_name("Pi-hole Core < 5.3 Multiple Privilege Escalation Vulnerabilities");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2021 Greenbone AG");
script_family("Privilege escalation");
script_dependencies("gb_pi-hole_http_detect.nasl");
script_mandatory_keys("pi-hole/detected");
script_tag(name:"summary", value:"Pi-hole Core is prone to multiple privilege escalation
vulnerabilities.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"Multiple privilege escalation vulnerabilities were discovered.
Please see the referenced advisory for technical details.");
script_tag(name:"impact", value:"These vulnerabilities allow attackers with a low privilege shell
to elevate their privileges to the root user.");
script_tag(name:"affected", value:"Pi-hole Core versions prior to 5.3.");
script_tag(name:"solution", value:"Update to version 5.3 or later.");
script_xref(name:"URL", value:"https://github.com/pi-hole/pi-hole/security/advisories/GHSA-3597-244c-wrpj");
script_xref(name:"URL", value:"https://pi-hole.net/2021/04/14/pi-hole-ftl-v5-8-web-v5-5-and-core-v5-3-released/");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (isnull(port = get_app_port(cpe: CPE)))
exit(0);
if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: TRUE))
exit(0);
version = infos["version"];
location = infos["location"];
if (version_is_less(version: version, test_version: "5.3")) {
report = report_fixed_ver(installed_version: version, fixed_version: "5.3", install_path: location);
security_message(port: port, data: report);
exit(0);
}
exit(99);
7.8 High
CVSS3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
7.1 High
AI Score
Confidence
Low
7.2 High
CVSS2
Access Vector
LOCAL
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:L/AC:L/Au:N/C:C/I:C/A:C
0.005 Low
EPSS
Percentile
76.6%