CVE-2022-41853
CRITICAL 9.8CVSS 3.1HyperSQL DataBase vulnerable to remote code execution when processing untrusted input
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.
- Published
- 6 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Modified
- Weakness
- CWE-470
- Also known as
- GHSA-77xx-rxvh-q682
- Sources
- NVDJSONOSV GHSA-77xx-rxvh-q682JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cve-coordination@google.com (Secondary) | CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hsqldb | hypersql_databasecpe:2.3:a:hsqldb:hypersql_database:*:*:*:*:*:*:*:* |
< 2.7.1 | 2.7.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | Maven | org.hsqldb:hsqldb | < 2.7.1 | 2.7.1 |
References
- http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control · Third Party Advisory, WEB
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7 · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/12/msg00020.html · Mailing List, Third Party Advisory, WEB
- https://www.debian.org/security/2023/dsa-5313 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-41853 · ADVISORY
- https://sourceforge.net/projects/hsqldb · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 6 Oct 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Oct 2022)