{"id":"CVE-2022-41853","published":"2022-10-06T17:14:43Z","modified":"2025-04-21T13:48:46Z","title":"Remote code execution in HyperSQL DataBase","vendor":"HyperSQL DataBase","product":"hsqldb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05145,"percentile":0.92611,"provenance":"source"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7","tags":[]},{"url":"http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00020.html","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2023/dsa-5313","tags":["vendor-advisory"]}],"priority":{"score":29.1,"factors":[{"name":"EPSS percentile","points":18.52},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.6}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-11-24","earliestUrl":"https://github.com/mbadanoiu/CVE-2022-41853","repos":[{"name":"mbadanoiu/CVE-2022-41853","url":"https://github.com/mbadanoiu/CVE-2022-41853","stars":2,"created":"2023-11-24"}]},"first":{"date":"2023-11-24","source":"PoC-in-GitHub","url":"https://github.com/mbadanoiu/CVE-2022-41853"},"provenance":"source"},"vendorSlug":"hypersql-database","affectedVersions":[{"vendor":"HyperSQL DataBase","product":"hsqldb","versions":[">= unspecified, < 2.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-21T13:37:02.383414Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.hsqldb:hsqldb","vulnerableRanges":["<2.7.1"],"patched":["2.7.1"],"from":["GHSA-77xx-rxvh-q682"],"provenance":"source"}],"summary":{"text":"A remote code execution flaw exists in the HyperSQL DataBase (hsqldb) product, where applications using java.sql.Statement or java.sql.PreparedStatement to process untrusted input can have any static method of any Java class on the classpath invoked by default. An attacker who can supply untrusted input to such statements, and who has network access to the affected application, can achieve code execution, though exploitation requires a user to interact with the crafted input and the attack is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:24Z"},"euvd":{"id":"EUVD-2022-7043","exploited":false,"provenance":"source"}}