Lucene search

K
openvasCopyright (C) 2023 Greenbone AGOPENVAS:1361412562310149651
HistoryMay 08, 2023 - 12:00 a.m.

HP LaserJet Pro Multiple Vulnerabilities (HPSBPI03839, HPSBPI03840, HPSBPI03841)

2023-05-0800:00:00
Copyright (C) 2023 Greenbone AG
plugins.openvas.org
5
hp laserjet pro
printers
vulnerabilities
buffer overflow
elevation of privilege
remote code execution
heap overflow
firmware update

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.6 High

AI Score

Confidence

High

0.006 Low

EPSS

Percentile

79.0%

Certain HP LaserJet Pro printers are prone to multiple
vulnerabilities.

# 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_PREFIX = "cpe:/o:hp:color_laserjet_pro";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.149651");
  script_version("2023-10-13T05:06:10+0000");
  script_tag(name:"last_modification", value:"2023-10-13 05:06:10 +0000 (Fri, 13 Oct 2023)");
  script_tag(name:"creation_date", value:"2023-05-08 06:13:22 +0000 (Mon, 08 May 2023)");
  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:"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:"2023-05-17 14:53:00 +0000 (Wed, 17 May 2023)");

  script_cve_id("CVE-2023-27971", "CVE-2023-27972", "CVE-2023-27973");

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

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

  script_name("HP LaserJet Pro Multiple Vulnerabilities (HPSBPI03839, HPSBPI03840, HPSBPI03841)");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2023 Greenbone AG");
  script_family("General");
  script_dependencies("gb_hp_printer_consolidation.nasl");
  script_mandatory_keys("hp/printer/detected");

  script_tag(name:"summary", value:"Certain HP LaserJet Pro printers are prone to multiple
  vulnerabilities.");

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

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

  - CVE-2023-27971: Potential buffer overflow, elevation of privilege

  - CVE-2023-27972: Potential buffer overflow, remote code execution

  - CVE-2023-27973: Potential heap overflow, remote code execution");

  script_tag(name:"affected", value:"- HP Color LaserJet MFP M478-M479 series

  - HP Color LaserJet Pro M453-M454 series

  - HP LaserJet Pro M304-M305 Printer series

  - HP LaserJet Pro M404-M405 Printer series

  - HP LaserJet Pro MFP M428-M429 f series

  - HP LaserJet Pro MFP M428-M429 series");

  script_tag(name:"solution", value:"Update to firmware version 002_2310A or later.");

  script_xref(name:"URL", value:"https://support.hp.com/us-en/document/ish_7919962-7920003-16/hpsbpi03839");
  script_xref(name:"URL", value:"https://support.hp.com/us-en/document/ish_7920078-7920104-16/hpsbpi03840");
  script_xref(name:"URL", value:"https://support.hp.com/us-en/document/ish_7920137-7920161-16/hpsbpi03841");

  exit(0);
}

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

if (!infos = get_app_port_from_cpe_prefix(cpe: CPE_PREFIX))
  exit(0);

cpe = infos["cpe"];

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

# e.g. SHMNT2XXXN002.2310A.00
check_vers = substr(version, 10, 18);

if (cpe =~ "^cpe:/h:hp:color_laserjet_pro_mfp_m47[89]" ||
    cpe =~ "^cpe:/h:hp:color_laserjet_pro_m45[34]" ||
    cpe =~ "^cpe:/h:hp:laserjet_pro_m30[45]" ||
    cpe =~ "^cpe:/h:hp:laserjet_pro_m40[45]" ||
    cpe =~ "^cpe:/h:hp:laserjet_pro_mfp_m42[89]") {
  if (version_is_less(version: check_vers, test_version: "002.2310a")) {
    report = report_fixed_ver(installed_version: version, fixed_version: "002_2310A");
    security_message(port: 0, data: report);
    exit(0);
  }
}

exit(99);

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.6 High

AI Score

Confidence

High

0.006 Low

EPSS

Percentile

79.0%

Related for OPENVAS:1361412562310149651