CVE-2022-41853
Java vulnerability analysis and mitigation

Overview

A remote code execution vulnerability (CVE-2022-41853) was discovered in HyperSQL DataBase (HSQLDB) affecting users who process untrusted input using java.sql.Statement or java.sql.PreparedStatement. The vulnerability was disclosed in October 2022 and affects HSQLDB installations where any static method of any Java class in the classpath could be called by default, potentially resulting in code execution (NVD, Debian LTS).

Technical details

The vulnerability exists in the default configuration of HSQLDB where any static method of any Java class in the classpath can be called when processing SQL statements through java.sql.Statement or java.sql.PreparedStatement interfaces. This unrestricted access to Java methods creates a potential vector for remote code execution when processing untrusted input (Red Hat CVE).

Impact

If successfully exploited, this vulnerability allows attackers to execute arbitrary code remotely through untrusted input processing, potentially leading to complete system compromise (Debian Security).

Mitigation and workarounds

The vulnerability can be mitigated by either updating to patched versions or by setting the system property 'hsqldb.methodclassnames' to explicitly specify which classes are allowed to be called. For example, using System.setProperty('hsqldb.methodclassnames','abc') or the Java argument -Dhsqldb.methodclassnames='abc'. In patched versions, all classes by default are not accessible except those in java.lang.Math and need to be manually enabled (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-13805MEDIUM6.3
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-13804MEDIUM5.3
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66372LOW2.8
  • JavaJava
  • org.mustangproject:library
NoYesNov 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management