# SPDX-FileCopyrightText: 2019 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:web_interface";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.108588");
script_version("2025-11-06T05:40:15+0000");
script_tag(name:"last_modification", value:"2025-11-06 05:40:15 +0000 (Thu, 06 Nov 2025)");
script_tag(name:"creation_date", value:"2019-05-25 14:17:45 +0000 (Sat, 25 May 2019)");
script_tag(name:"cvss_base", value:"6.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:P/I:P/A:P");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"VendorFix");
script_name("Pi-hole Web Interface < 4.3 RCE Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2019 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_pi-hole_consolidation.nasl");
script_mandatory_keys("pi-hole/detected");
script_tag(name:"summary", value:"The Pi-hole Web Interface (previously AdminLTE) is prone to a
remote code execution (RCE) vulnerability in the web interface.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"A remote code execution could have been triggered by activating
some list (adding or removing white/blacklist entries) via api.php by an authenticated user.");
script_tag(name:"affected", value:"Pi-hole Web Interface (previously AdminLTE) prior to version
4.3.");
script_tag(name:"solution", value:"Update to version 4.3 or later.");
script_xref(name:"URL", value:"https://pi-hole.net/2019/05/18/pi-hole-4-3-now-available/");
script_xref(name:"URL", value:"https://github.com/pi-hole/AdminLTE/releases/tag/v4.3");
script_xref(name:"URL", value:"https://github.com/pi-hole/AdminLTE/pull/921");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (!version = get_app_version(cpe: CPE, nofork: TRUE))
exit(0);
if (version_is_less(version: version, test_version: "4.3")) {
report = report_fixed_ver(installed_version: version, fixed_version: "4.3");
security_message(port: 0, data: report);
exit(0);
}
exit(99);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation