CRITICAL 9.8

CVE-2022-41853

HyperSQL DataBase vulnerable to remote code execution when processing untrusted input

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.hsqldb » hsqldb
< 2.7.1
2.7.1

Blast radius

1affected artifacts
37affected versions
5,305dependent artifacts (est.)
652,904dependent versions

65% of the dependent artifacts (3,500) still pull an affected version in their latest release.

DepthDependent versions
Direct
53,869
2 hops
345,303
3 hops
132,473
4 hops
76,572
5 hops
29,484
6 hops
15,203

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.