Lucene search
+L

D-Link DIR-645 Rev. A Devices Multiple Vulnerabilities (2021 - 2025)

🗓️ 22 Feb 2023 00:00:00Reported by Copyright (C) 2023 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 24 Views

D-Link DIR-645 Rev. A Devices Multiple Vulnerabilities (Mar 2022). Hardware rev:

Related
Refs
Code
# SPDX-FileCopyrightText: 2023 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:/o:dlink:dir-645_firmware";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.170316");
  script_version("2025-12-01T05:45:26+0000");
  script_tag(name:"last_modification", value:"2025-12-01 05:45:26 +0000 (Mon, 01 Dec 2025)");
  script_tag(name:"creation_date", value:"2023-02-22 19:26:41 +0000 (Wed, 22 Feb 2023)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2022-04-08 06:33:00 +0000 (Fri, 08 Apr 2022)");

  script_tag(name:"qod_type", value:"remote_banner");

  script_tag(name:"solution_type", value:"WillNotFix");

  # nb: Unlike other VTs we're using the CVEs line by line here for easier addition of new CVEs / to
  #     avoid too large diffs when adding a new CVE.
  script_cve_id("CVE-2021-43722",
                "CVE-2022-32092",
                "CVE-2022-46475",
                "CVE-2025-7192",
                "CVE-2025-10689"
                );

  script_name("D-Link DIR-645 Rev. A Devices Multiple Vulnerabilities (2021 - 2025)");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2023 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_dlink_dir_consolidation.nasl");
  script_mandatory_keys("d-link/dir/detected", "d-link/dir/hw_version");

  script_tag(name:"summary", value:"D-Link DIR-645 Rev. A devices are prone to multiple
  vulnerabilities.");

  script_tag(name:"vuldetect", value:"Checks if the target host is a vulnerable device.");

  script_tag(name:"insight", value:"The following vulnerabilities exist:

  - CVE-2021-43722: The hnap_main function in the cgibin handler uses sprintf to format the
  soapaction header onto the stack and has no limit on the size.

  - CVE-2022-32092: Command injection vulnerability via the QUERY_STRING parameter at
  __ajax_explorer.sgi

  - CVE-2022-46475: Stack overflow via the service= variable in the genacgi_main function

  - CVE-2025-7192: Command injection in the function ssdpcgi_main of the file /htdocs/cgibin of the
  component ssdpcgi

  - CVE-2025-10689: Command injection vulnerability via the function soapcgi_main of the file
  /soap.cgi");

  script_tag(name:"affected", value:"D-Link DIR-645 Rev A devices in all versions.");

  script_tag(name:"solution", value:"No solution was made available by the vendor. General solution
  options are to upgrade to a newer release, disable respective features, remove the product or
  replace the product by another one.

  Note:  The vendor states that technical support for DIR-645 has ended in 31.12.2018, therefore
  most probably no effort will be made to provide a fix for these vulnerabilities.");

  script_xref(name:"URL", value:"https://github.com/Insight8991/iot/blob/main/DIR-645%20Stack%20overflow.md");
  script_xref(name:"URL", value:"https://github.com/fxc233/iot-vul/tree/main/D-Link/DIR-645");
  script_xref(name:"URL", value:"https://github.com/Insight8991/iot/blob/main/DIR-645%20genacgi%20Stack%20overflow.md");
  script_xref(name:"URL", value:"https://github.com/Thir0th/Thir0th-CVE/blob/main/D-Link%20DIR%E2%80%91645%20A1%20has%20a%20remote%20arbitrary%20command%20execution%20vulnerability%20in%20ssdpcgi.md");
  script_xref(name:"URL", value:"https://legacy.us.dlink.com/pages/product.aspx?id=5ec9c4690cb84e258a81704e585167bb");
  script_xref(name:"URL", value:"https://github.com/scanleale/IOT_sec/blob/main/DIR-645-soapcgi.pdf");

  exit(0);
}

include("host_details.inc");
include("version_func.inc");

if ( ! version = get_app_version( cpe:CPE, nofork:TRUE ) )
  exit( 0 );

if ( ! hw_version = get_kb_item( "d-link/dir/hw_version" ) )
  exit( 0 );

if ( hw_version =~ "A" ) {
  report = report_fixed_ver( installed_version:version, fixed_version:"None", extra:"Hardware revision: " + hw_version );
  security_message( port:0, data:report );
  exit( 0 );
} else #nb: Other revisions
  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

01 Dec 2025 00:00Current
7.1High risk
Vulners AI Score7.1
CVSS 26.5 - 7.5
CVSS 3.19.8
CVSS 45.3
CVSS 36.3
EPSS0.09529
SSVC
24