Lucene search

K
openvasCopyright (C) 2023 Greenbone AGOPENVAS:1361412562310832161
HistoryJul 19, 2023 - 12:00 a.m.

Oracle Java SE Security Update (jul2023) 03 - Linux

2023-07-1900:00:00
Copyright (C) 2023 Greenbone AG
plugins.openvas.org
1
oracle
java se
linux
rce
vulnerability
versions
8u371
11.0.19
17.0.7
20.0.1
vendor
fix

6.8 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

25.7%

Oracle Java SE is prone to remote code execution (RCE)
vulnerability.

# 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.832161");
  script_version("2023-10-13T05:06:10+0000");
  script_cve_id("CVE-2023-22041");
  script_tag(name:"cvss_base", value:"4.0");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:H/Au:N/C:C/I:N/A:N");
  script_tag(name:"last_modification", value:"2023-10-13 05:06:10 +0000 (Fri, 13 Oct 2023)");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2023-07-18 22:17:00 +0000 (Tue, 18 Jul 2023)");
  script_tag(name:"creation_date", value:"2023-07-19 19:35:02 +0530 (Wed, 19 Jul 2023)");
  script_name("Oracle Java SE Security Update (jul2023) 03 - Linux");

  script_tag(name:"summary", value:"Oracle Java SE is prone to remote code execution (RCE)
  vulnerability.");

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

  script_tag(name:"insight", value:"The flaw is due to improper application of hotspot module
  within the Java SE engine component in Oracle Java SE.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attacker to manipulate data.");

  script_tag(name:"affected", value:"Oracle Java SE version 8u371 and earlier, 11.0.19, 17.0.7, 20.0.1 and
  earlier on Linux.");

  script_tag(name:"solution", value:"The vendor has released updates. Please see the references for more information.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"executable_version");
  script_xref(name:"URL", value:"https://www.oracle.com/security-alerts/cpujul2023.html");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2023 Greenbone AG");
  script_family("General");
  script_dependencies("gb_java_prdts_detect_lin.nasl");
  script_mandatory_keys("Oracle/Java/JDK_or_JRE/Linux/detected");
  exit(0);
}

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

CPE = "cpe:/a:oracle:jre";

if(!infos = get_app_version_and_location(cpe:CPE, exit_no_version:TRUE))
  exit(0);

vers = infos["version"];
path = infos["location"];

if(version_in_range(version:vers, test_version:"1.8.0", test_version2:"1.8.0.371") ||
   version_in_range(version:vers, test_version:"11.0", test_version2:"11.0.19") ||
   version_in_range(version:vers, test_version:"17.0", test_version2:"17.0.7") ||
   version_in_range(version:vers, test_version:"20.0", test_version2:"20.0.1")) {
  report = report_fixed_ver(installed_version:vers, fixed_version: "Apply patch from vendor", install_path:path);

  security_message(port:0, data:report);
  exit(0);
}

exit(99);