Remote code execution in HyperSQL DataBase
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.hsqldb:hsqldbMaven | < 2.7.1 | 2.7.1 |
Affected products
5- ghsa-coords4 versionspkg:maven/org.hsqldb/hsqldbpkg:rpm/opensuse/hsqldb&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/hsqldb&distro=openSUSE%20Leap%2015.4pkg:rpm/suse/hsqldb&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5
< 2.7.1+ 3 more
- (no CPE)range: < 2.7.1
- (no CPE)range: < 2.3.3-150000.7.3.1
- (no CPE)range: < 2.3.3-150000.7.3.1
- (no CPE)range: < 2.2.9-5.3.1
- HyperSQL DataBase/hsqldbv5Range: unspecified
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-77xx-rxvh-q682ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-41853ghsaADVISORY
- www.debian.org/security/2023/dsa-5313ghsavendor-advisoryWEB
- hsqldb.org/doc/2.0/guide/sqlroutines-chapt.htmlghsaWEB
- bugs.chromium.org/p/oss-fuzz/issues/detailghsaWEB
- lists.debian.org/debian-lts-announce/2022/12/msg00020.htmlghsamailing-listWEB
- sourceforge.net/projects/hsqldbghsaPACKAGE
News mentions
0No linked articles in our index yet.