CVE-2022-41853
Public on
Last Modified:
Description
A flaw was found in the HSQLDB package. This flaw allows untrusted inputs to execute remote code due to any static method of any Java class in the classpath, resulting in code execution by default.
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.
Additional Information
- This content is not included.Bugzilla 2136141: hsqldb: Untrusted input may lead to RCE attack
- Content from cwe.mitre.org is not included.CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
- FAQ: Frequently asked questions about CVE-2022-41853
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2022-41853
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2022-41853
Content from github.com is not included.https://github.com/advisories/GHSA-77xx-rxvh-q682
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| A-MQ Clients 2 | hsqldb | Not affected | |
| RHINT Camel-Springboot 3.20.1 | hsqldb | Fixed | RHSA-2023:2100 |
| Red Hat Data Grid 8 | hsqldb | Will not fix | |
| Red Hat Decision Manager 7 | hsqldb | Not affected | |
| Red Hat Enterprise Linux 6 Extended Lifecycle Support | hsqldb | Fixed | RHSA-2022:8559 |
| Red Hat Enterprise Linux 7 | hsqldb | Fixed | RHSA-2022:8560 |
| Red Hat Enterprise Linux 8 | libreoffice | Not affected | |
| Red Hat Enterprise Linux 9 | libreoffice | Not affected | |
| Red Hat Fuse 7.11.1 | hsqldb | Fixed | RHSA-2022:8652 |
| Red Hat Integration Camel K 1 | hsqldb | Affected | |
| Red Hat Integration Camel Quarkus 1 | hsqldb | Fix deferred | |
| Red Hat JBoss Data Grid 7 | hsqldb | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 6 | hsqldb | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 6 | jboss-on | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7 | hsqldb | Fixed | RHSA-2023:1516 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-apache-cxf | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-avro | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-bouncycastle | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-h2database | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-jackson-databind | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-jboss-marshalling | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-jboss-xnio-base | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-xalan-j2 | Fixed | RHSA-2024:10208 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-apache-cxf | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-avro | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-h2database | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-jboss-annotations-api_1.3_spec | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-jboss-marshalling | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-jboss-server-migration | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-jboss-xnio-base | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-log4j-jboss-logmanager | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-wildfly | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-wss4j | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-xalan-j2 | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-xml-security | Fixed | RHSA-2024:10207 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-activemq-artemis-native | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-apache-mime4j | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-artemis-native | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-artemis-wildfly-integration | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-infinispan | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-ironjacamar | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jboss-ejb-client | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jboss-el-api_3.0_spec | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jboss-metadata | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jboss-server-migration | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jbossws-cxf | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-jbossws-spi | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-netty | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-netty-transport-native-epoll | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-picketlink-federation | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-resteasy | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-snakeyaml | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-undertow | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-undertow-jastow | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-wildfly | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-wildfly-http-client | Fixed | RHSA-2023:1513 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-activemq-artemis-native | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-apache-mime4j | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-artemis-native | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-artemis-wildfly-integration | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-infinispan | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-ironjacamar | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jboss-ejb-client | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jboss-el-api_3.0_spec | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jboss-metadata | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jboss-server-migration | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jbossws-cxf | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-jbossws-spi | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-netty | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-netty-transport-native-epoll | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-picketlink-federation | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-resteasy | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-snakeyaml | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-undertow | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-undertow-jastow | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-wildfly | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9 | eap7-wildfly-http-client | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-activemq-artemis-native | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-apache-mime4j | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-artemis-native | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-artemis-wildfly-integration | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-infinispan | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-ironjacamar | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jboss-ejb-client | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jboss-el-api_3.0_spec | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jboss-metadata | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jboss-server-migration | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jbossws-cxf | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-jbossws-spi | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-netty | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-netty-transport-native-epoll | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-picketlink-federation | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-resteasy | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-snakeyaml | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-undertow | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-undertow-jastow | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-wildfly | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-wildfly-http-client | Fixed | RHSA-2023:1512 |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | hsqldb | Not affected | |
| Red Hat JBoss Fuse 6 | hsqldb | Out of support scope | |
| Red Hat JBoss Fuse Service Works 6 | hsqldb | Out of support scope | |
| Red Hat JBoss Operations Network 3 | hsqldb | Out of support scope | |
| Red Hat JBoss Operations Network 3 | jboss-on | Out of support scope | |
| Red Hat JBoss Operations Network 3 | org.jboss.on-jboss-on-parent | Out of support scope | |
| Red Hat OpenShift Application Runtimes | hsqldb | Fix deferred | |
| Red Hat OpenStack Platform 13 (Queens) | opendaylight | Affected | |
| Red Hat Process Automation 7 | hsqldb | Not affected | |
| streams for Apache Kafka | hsqldb | Not affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 9.8 | 9.8 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | High | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.