Vulnerabilities / CVE-2022-41853

critical

CVE-2022-41853

hsqldb: Untrusted input may lead to RCE attack

Published Modified CWE 470
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), Amazon (high), Oracle (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.hsqldb:hsqldb2.7.1
amazon linux 1hsqldb, hsqldb-demo, hsqldb-javadoc and 1 more1:1.8.1.3-1.13.amzn1
amazon linux 2hsqldb, hsqldb-demo, hsqldb-javadoc and 1 more1:1.8.1.3-15.amzn2.0.1
debian 10hsqldb2.4.1-2+deb10u1
debian 11hsqldb2.5.1-1+deb11u1
debian 12hsqldb2.7.1-1
debian 13hsqldb2.7.1-1
debian 14hsqldb2.7.1-1
echohsqldb2.7.1-1
Oracle Linux 6hsqldb, hsqldb-demo, hsqldb-javadoc and 1 more1:1.8.0.10-12.0.1.el6
Oracle Linux 7hsqldb, hsqldb-demo, hsqldb-javadoc and 1 more1:1.8.1.3-15.el7_9
Red Hatopendaylightno fix listed
Show all 24 entries from 12 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.hsqldb:hsqldb2.7.1
amazon linux 1hsqldb1:1.8.1.3-1.13.amzn1
amazon linux 1hsqldb-demo1:1.8.1.3-1.13.amzn1
amazon linux 1hsqldb-javadoc1:1.8.1.3-1.13.amzn1
amazon linux 1hsqldb-manual1:1.8.1.3-1.13.amzn1
amazon linux 2hsqldb1:1.8.1.3-15.amzn2.0.1
amazon linux 2hsqldb-demo1:1.8.1.3-15.amzn2.0.1
amazon linux 2hsqldb-javadoc1:1.8.1.3-15.amzn2.0.1
amazon linux 2hsqldb-manual1:1.8.1.3-15.amzn2.0.1
debian 10hsqldb2.4.1-2+deb10u1
debian 11hsqldb2.5.1-1+deb11u1
debian 12hsqldb2.7.1-1
debian 13hsqldb2.7.1-1
debian 14hsqldb2.7.1-1
echohsqldb2.7.1-1
Oracle Linux 6hsqldb1:1.8.0.10-12.0.1.el6
Oracle Linux 6hsqldb-demo1:1.8.0.10-12.0.1.el6
Oracle Linux 6hsqldb-javadoc1:1.8.0.10-12.0.1.el6
Oracle Linux 6hsqldb-manual1:1.8.0.10-12.0.1.el6
Oracle Linux 7hsqldb1:1.8.1.3-15.el7_9
Oracle Linux 7hsqldb-demo1:1.8.1.3-15.el7_9
Oracle Linux 7hsqldb-javadoc1:1.8.1.3-15.el7_9
Oracle Linux 7hsqldb-manual1:1.8.1.3-15.el7_9
Red Hatopendaylightno fix listed

References

All 11 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.