Debian DSA-5076-1 : h2database - security update

critical Nessus Plugin ID 158090

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 10 / 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dsa-5076 advisory.

- The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution. (CVE-2021-42392)

- H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the IGNORE_UNKNOWN_SETTINGS=TRUE;FORBID_CREATION=FALSE;INIT=RUNSCRIPT substring, a different vulnerability than CVE-2021-42392. (CVE-2022-23221)

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

Solution

Upgrade the h2database packages.

For the stable distribution (bullseye), these problems have been fixed in version 1.4.197-4+deb11u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003894

https://security-tracker.debian.org/tracker/source-package/h2database

https://www.debian.org/security/2022/dsa-5076

https://security-tracker.debian.org/tracker/CVE-2021-42392

https://security-tracker.debian.org/tracker/CVE-2022-23221

https://packages.debian.org/source/buster/h2database

https://packages.debian.org/source/bullseye/h2database

Plugin Details

Severity: Critical

ID: 158090

File Name: debian_DSA-5076.nasl

Version: 1.3

Type: local

Agent: unix

Published: 2/16/2022

Updated: 2/22/2022

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

CVSS Score Source: CVE-2022-23221

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:10.0, cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:libh2-java-doc, p-cpe:/a:debian:debian_linux:libh2-java

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/15/2022

Vulnerability Publication Date: 1/10/2022

Reference Information

CVE: CVE-2021-42392, CVE-2022-23221