Those using java.sql.Statement or java.sql.PreparedStatement in hsqldb (HyperSQL DataBase) to process untrusted input may be vulnerable to …
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.
The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.
https://cwe.mitre.org/data/definitions/470.html →Open in CWE collection →An adversary supplies a value to the target application which is then used by reflection methods to identify a class, method, or field. For example, in the Java programming language the reflection libraries permit an application to inspect, load, and invoke classes and their components by name. If an adversary can control the input into these methods including the name of the class/method/field or the parameters passed to methods, they can cause the targeted application to invoke incorrect methods, read random fields, or even to load and utilize malicious classes that the adversary created. This can lead to the application revealing sensitive information, returning incorrect results, or even having the adversary take control of the targeted application.
https://capec.mitre.org/data/definitions/138.html →Open in CAPEC collection →| Product | Vendor | Status |
|---|---|---|
| eap7-activemq-artemis-native | Tracked | |
| eap7-activemq-artemis-native | Tracked | |
| eap7-activemq-artemis-native | Tracked | |
| eap7-apache-cxf | Tracked | |
| eap7-apache-cxf | Tracked | |
| eap7-apache-mime4j | Tracked | |
| eap7-apache-mime4j | Tracked | |
| eap7-apache-mime4j | Tracked | |
| eap7-artemis-native | Tracked | |
| eap7-artemis-native | Tracked | |
| eap7-artemis-native | Tracked | |
| eap7-artemis-wildfly-integration | Tracked | |
| eap7-artemis-wildfly-integration | Tracked | |
| eap7-artemis-wildfly-integration | Tracked | |
| eap7-avro | Tracked | |
| eap7-avro | Tracked | |
| eap7-bouncycastle | Tracked | |
| eap7-h2database | Tracked | |
| eap7-h2database | Tracked | |
| eap7-infinispan | Tracked |