QID 354681

Date Published: 2023-01-25

QID 354681: Amazon Linux Security Advisory for hsqldb : ALAS-2023-1666

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. (
( CVE-2022-41853)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS-2023-1666 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 354681

    Software Advisories
    Advisory ID Software Component Link
    ALAS-2023-1666 amazon linux URL Logo alas.aws.amazon.com/ALAS-2023-1666.html