# CVE-2022-41853: Remote code execution in HyperSQL DataBase

- Severity: High 8.0 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.49%, higher than 92% of CVEs (2026-12-02)
- Published: 2022-10-06T17:14:43.225Z
- Modified: 2026-06-17T05:03:56.057Z
- Also known as: GHSA-77xx-rxvh-q682
- Weaknesses: CWE-470
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Google

## 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.

(As written by CVE List.)

## Affected

- HyperSQL DataBase hsqldb: from unspecified before 2.7.1
- org.hsqldb:hsqldb (Maven): before 2.7.1
- hsqldb hypersql_database: before 2.7.1
- debian debian_linux: 10.0; 11.0

## Every score

- Google: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7> (mailing-list, third-party-advisory, web)
- <http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control> (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, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41853> (advisory)
- <https://sourceforge.net/projects/hsqldb> (package)

## Sources

- CVE List: [CVE-2022-41853](https://www.cve.org/CVERecord?id=CVE-2022-41853), CVE Terms of Use, modified 2025-04-21
- GitHub Advisory Database: [GHSA-77xx-rxvh-q682](https://github.com/advisories/GHSA-77xx-rxvh-q682), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-41853](https://nvd.nist.gov/vuln/detail/CVE-2022-41853), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-41853 · Whole record: https://cve.day/CVE-2022-41853.json · Rebuilt by cve.day 2026-11-25T22:58:15.440Z
