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.

Security researchers of JFrog Security and Ismail Aydemir discovered two remote code execution vulnerabilities in the H2 Java SQL database engine which can be exploited through various attack vectors, most notably through the H2 Console and by loading custom classes from remote servers through JNDI. The H2 console is a developer tool and not required by any reverse-dependency in Debian. It has been disabled in (old)stable releases. Database developers are advised to use at least version 2.1.210-1, currently available in Debian unstable. For the oldstable distribution (buster), these problems have been fixed in version 1.4.197-4+deb10u1. For the stable distribution (bullseye), these problems have been fixed in version 1.4.197-4+deb11u1. We recommend that you upgrade your h2database packages. For the detailed security status of h2database please refer to its security tracker page at: https://security- tracker.debian.org/tracker/h2database

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for these issues 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.4

Type: local

Agent: unix

Published: 2/16/2022

Updated: 1/24/2025

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