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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.hsqldb » hsqldb | < 2.7.1 | 2.7.1 |
Blast radius
65% of the dependent artifacts (3,500) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.boot » spring-boot-starter-actuator6,564 usages
- com.zaxxer » HikariCP4,006 usages
- org.springframework.boot » spring-boot-actuator1,435 usages
- org.liquibase » liquibase-core1,306 usages
- com.atlassian.confluence » confluence724 usages
- org.dbunit » dbunit596 usages
- com.atlassian.jira » jira-core554 usages
- org.geotools » gt-epsg-hsql540 usages
- org.geoserver » gs-main299 usages
- org.springframework.batch » spring-batch-core271 usages
- org.apache.pig » pig262 usages
- org.liquibase » liquibase-maven-plugin207 usages
- org.geoserver.web » gs-web-core194 usages
- org.apache.tomee » openejb-core193 usages
- org.esa.snap » snap-core187 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-41853
- Webhttps://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7
- Webhttps://lists.debian.org/debian-lts-announce/2022/12/msg00020.html
- Packagehttps://sourceforge.net/projects/hsqldb
- Webhttps://www.debian.org/security/2023/dsa-5313
- Webhttp://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control
