Amazon Linux 2 : hsqldb (ALAS-2023-1914)

critical Nessus Plugin ID 170451

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of hsqldb installed on the remote host is prior to 1.8.1.3-15. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2023-1914 advisory.

- Those using java.sql.Statement or java.sql.PreparedStatement in hsqldb (HyperSQL DataBase) to process untrusted input may be vulnerable to a remote code execution attack. By default it is allowed to call any static method of any Java class in the classpath resulting in code execution. The issue can be prevented by updating to 2.7.1 or by setting the system property hsqldb.method_class_names to classes which are allowed to be called. For example, System.setProperty(hsqldb.method_class_names, abc) or Java argument
-Dhsqldb.method_class_names=abc can be used. From version 2.7.1 all classes by default are not accessible except those in java.lang.Math and need to be manually enabled. (CVE-2022-41853)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update hsqldb' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2023-1914.html

https://alas.aws.amazon.com/cve/html/CVE-2022-41853.html

Plugin Details

Severity: Critical

ID: 170451

File Name: al2_ALAS-2023-1914.nasl

Version: 1.0

Type: local

Agent: unix

Published: 1/24/2023

Updated: 1/24/2023

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS Score Source: CVE-2022-41853

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:2.3:o:amazon:linux:2:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:hsqldb:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:hsqldb-demo:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:hsqldb-javadoc:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:hsqldb-manual:*:*:*:*:*:*:*

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 1/18/2023

Vulnerability Publication Date: 10/6/2022

Reference Information

CVE: CVE-2022-41853