Vulnerabilities / CVE-2022-23221

critical

CVE-2022-23221

h2: Loading of custom classes from remote servers through JNDI

Published Modified CWE 88
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
maven::GitHub Security Advisory Mavencom.h2database:h22.1.210
debian 10h2database1.4.197-4+deb10u1
debian 11h2database1.4.197-4+deb11u1
debian 12h2database2.1.210-1
debian 13h2database2.1.210-1
debian 14h2database2.1.210-1
debian 9h2database1.4.193-1+deb9u1
echoh2database2.1.210-1
seal maven::Seal Security Databasecom.h2database:h2, seal.sp1.com.h2database:h21.4.196+sp999
ubuntu 16.04-ESMh2database1.4.191-1ubuntu0.1~esm1
ubuntu 18.04-ESMh2database1.4.196-2ubuntu0.1~esm1
ubuntu 20.04h2database1.4.197-4+deb10u1build0.20.04.1
Show all 16 entries from 15 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavencom.h2database:h22.1.210
debian 10h2database1.4.197-4+deb10u1
debian 11h2database1.4.197-4+deb11u1
debian 12h2database2.1.210-1
debian 13h2database2.1.210-1
debian 14h2database2.1.210-1
debian 9h2database1.4.193-1+deb9u1
echoh2database2.1.210-1
seal maven::Seal Security Databasecom.h2database:h21.4.196+sp999
seal maven::Seal Security Databaseseal.sp1.com.h2database:h21.4.196+sp999
ubuntu 16.04-ESMh2database1.4.191-1ubuntu0.1~esm1
ubuntu 18.04-ESMh2database1.4.196-2ubuntu0.1~esm1
ubuntu 20.04h2database1.4.197-4+deb10u1build0.20.04.1
ubuntu 20.04-ESMh2database1.4.197-4+deb10u1build0.20.04.1
ubuntu 21.10h2database1.4.197-4+deb10u1build0.21.10.1
ubuntu 22.04h2database2.1.210+really1.4.197-1

References

All 18 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.