WaratekVRT Sign in

CVE-2022-41853 hsqldb HyperSQL DataBase

Affected softwarehsqldb HyperSQL DataBase
Severity9.8 Critical CVSS 3.1 2 scores
Fixed in2.7.1
WeaknessUnsafe reflection (CWE-470)
Published6 Oct 2022
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. The 1 repository below are public GitHub repositories with fewer than 5 stars.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 1 indexed, none at 5+ stars
  • EPSS 5.1% chance in 30 days

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Research into CVE-2022-41853: Using static functions to obtian RCE via Java Deserialization & Remote Codebase Attack 2 2023-11-24

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full
  • Action available security rule
  • Review human Researcher
  • Record active
Decided by Manual classification of this CVE in the legacy dataset
Finding A manual classification set this CVE's status to Protected by Waratek.

How to mitigate CVE-2022-41853

Upgrade hsqldb HyperSQL DataBase to 2.7.1 or later. Until you can, Waratek RASP blocks exploitation with a security rule that blocks this kind of attack. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 3.1 8.0 HIGH CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H cve-coordination@google.com Secondary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update October 2026 ↗ CPU 2026-Q4 Oracle Fusion Middleware / Dictionary Repository (12.2.1.4.0, 14.1.2.0.0)
Oracle Critical Patch Update April 2024 ↗ CPU 2024-Q2 Oracle Insurance Applications / Enterprise Edition (HyperSQL Database) (12.6, 12.7)
Oracle Critical Patch Update July 2023 ↗ CPU 2023-Q3 Oracle Fusion Middleware / Third Party (HyperSQL Database) (12.2.1.4.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Fusion Middleware Dictionary Repository 12.2.1.4.0, 14.1.2.0.0 12.2.1.4.0 · 14.1.2.0.0
Oracle Fusion Middleware Third Party (HyperSQL Database) 12.2.1.4.0 12.2.1.4.0
Oracle Insurance Applications Enterprise Edition (HyperSQL Database) 12.6, 12.7 12.6 · 12.7

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.hsqldb:hsqldb 0 2.7.1 unbounded

Products and versions

3 products, 4 version entries
SourceVendorProductSchemeAffected versions
nvd debian debian linux generic 10.0 · 11.0
nvd hsqldb hypersql database generic < 2.7.1
osv org.hsqldb hsqldb generic < 2.7.1

References

URLTags
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7 WEB
https://lists.debian.org/debian-lts-announce/2022/12/msg00020.html WEB
https://sourceforge.net/projects/hsqldb PACKAGE
https://www.debian.org/security/2023/dsa-5313 WEB
http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control WEB

Timeline

Published2022-10-06By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.