cve.bz

CVE-2022-41853 Reflection Injection

9.8 criticalEPSS 5.1%Fix available

Critical (9.8). EPSS 5.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.hsqldb:hsqldb 2.7.1.

On this page
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.

Severity

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
EPSS
5.1% (unchanged from 5.1% a week ago; 5.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-470 Use of Externally-Controlled Input to Select Classes or Code (Reflection Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-41853 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-41853?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-41853?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-41853 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
HyperSQL DataBase hsqldbbefore 2.7.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-77xx-rxvh-q682Mavenorg.hsqldb:hsqldb<2.7.12.7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10hsqldb2.4.1-2+deb10u1DLA-3234-1
Debian11hsqldb2.5.1-1+deb11u1DSA-5313-1
Debian12, 13, 14hsqldb2.7.1-1DEBIAN-CVE-2022-41853
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morehsqldbno fix listedUBUNTU-CVE-2022-41853
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morehsqldb, hsqldb-demo, hsqldb-manual and 1 more1:1.8.1.3-15.el7_9RHSA-2022:8560
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-activemq-artemis-native1:1.0.2-3.redhat_00004.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-apache-mime4j0:0.8.9-1.redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-artemis-native, eap7-artemis-native-wildfly, eap7-artemis-native-debuginfo1:1.0.2-4.redhat_00004.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-artemis-wildfly-integration0:1.0.7-1.redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-infinispan, eap7-infinispan-core, eap7-infinispan-commons and 7 more0:11.0.17-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.5.11-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-ejb-client0:4.0.50-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-el-api_3.0_spec0:2.0.1-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-metadata, eap7-jboss-metadata-ear, eap7-jboss-metadata-ejb and 3 more0:13.4.0-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core0:1.10.0-26.Final_redhat_00025.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jbossws-cxf0:5.4.8-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
71 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Software Development Kit 12 SP5hsqldb2.2.9-5.3.1SUSE-SU-2022:3864-1
openSUSELeap 15.3, Leap 15.4hsqldb2.3.3-150000.7.3.1SUSE-SU-2022:3823-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

By default, the static methods of any class that is on the classpath are available for use and can compromise security in some systems. The optional Java system property, hsqldb.method_class_names, allows preventing access to classes other than java.lang.Math or specifying a semicolon-separated list of allowed classes. A property value that ends with .* is treated as a wild card and allows access to all class or method names formed by substitution of the * (asterisk).

In the example below, the property has been included as an argument to the Java command.

java -Dhsqldb.method_class_names="org.me.MyClass;org.you.YourClass;org.you.lib.*" [the rest of the command line]

The above example allows access to the methods in the two classes: org.me.MyClass and org.you.YourClass together with all the classes in the org.you.lib package. Note that if the property is not defined, no access control is performed at this level.

The user who creates a Java routine must have the relevant access privileges on the tables that are used inside the Java method.

Once the routine has been defined, the normal database access control applies to its user. The routine can be executed only by those users who have been granted EXECUTE privileges on it. Access to routines can be granted to users with GRANT EXECUTE or GRANT ALL. For example, GRANT EXECUTE ON myroutine TO PUBLIC.

In hsqldb 2.7.1, all classes by default are not accessible, except those in java.lang.Math and need to be manually enabled.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Supporthsqldb-1:1.8.0.10-13.el6_10Fixed 2022-11-21RHSA-2022:8559
Red Hat Enterprise Linux 7hsqldb-1:1.8.1.3-15.el7_9Fixed 2022-11-21RHSA-2022:8560
Red Hat Fuse 7.11.1hsqldbFixed 2022-11-28RHSA-2022:8652
Red Hat JBoss Enterprise Application Platformcom.h2database/h2:1.4.197.redhat-00004Fixed 2023-03-29RHSA-2023:1516
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-apache-cxf-0:3.1.16-3.SP1_redhat_00001.1.ep7.el7Fixed 2024-11-25RHSA-2024:10208
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-avro-0:1.7.6-2.redhat_00003.1.ep7.el7Fixed 2024-11-25RHSA-2024:10208
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-bouncycastle-0:1.68.0-1.redhat_00005.1.ep7.el7Fixed 2024-11-25RHSA-2024:10208
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-h2database-0:1.4.197-2.redhat_00005.1.ep7.el7Fixed 2024-11-25RHSA-2024:10208
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jackson-databind-0:2.8.11.6-1.SP1_redhat_00001.1.ep7.el7Fixed 2024-11-25RHSA-2024:10208
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jboss-marshalling-0:2.0.15-1.Final_redhat_00001.1.ep7.el7Fixed 2024-11-25RHSA-2024:10208
A-MQ Clients 2hsqldbNot affected
Red Hat Data Grid 8hsqldbWill not fix
Red Hat Decision Manager 7hsqldbNot affected
Red Hat Enterprise Linux 8libreofficeNot affected
Red Hat Enterprise Linux 9libreofficeNot affected
Red Hat Integration Camel K 1hsqldbAffected
Red Hat Integration Camel Quarkus 1hsqldbFix deferred
Red Hat JBoss Data Grid 7hsqldbOut of support scope
Red Hat JBoss Enterprise Application Platform 6hsqldbOut of support scope
Red Hat JBoss Enterprise Application Platform 6jboss-onOut of support scope
89 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-41853.

Attack patterns (CAPEC)

  • CAPEC-138 Reflection Injection Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON