DSA-5313: -1 hsqldb -- security update

Published Jan 11, 2023
·
Updated

hsqldb - security update

Other sources

It was found that those using java.sql.Statement or java.sql.PreparedStatement in hsqldb, a Java SQL 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.5.1-1+deb11u1 or by setting the system property hsqldb.methodclassnames to classes which are allowed to be called. For example, System.setProperty("hsqldb.methodclassnames","abc") or Java argument -Dhsqldb.methodclassnames="abc" can be used. From version 2.5.1-1+deb11u1 all classes by default are not accessible except those in java.lang.Math and need to be manually enabled.

Affected Software

2 affected componentsFixes available
debian/hsqldb
debian/hsqldb
2.5.1-1+deb11u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/hsqldb to a version that resolves this vulnerability.

    Fixed in 2.5.1-1+deb11u1
  2. Upgrade

    Upgrade hsqldb to a version that resolves this vulnerability.

    Fixed in 2.5.1-1+deb11u1Patch DSA-5313-1
  3. Configuration

    Set the system property hsqldb.method_class_names to the classes allowed to be called; for example, use -Dhsqldb.method_class_names="abc" or System.setProperty("hsqldb.method_class_names","abc").

    hsqldb hsqldb.method_class_names = classes which are allowed to be called

Event History

Jan 11, 2023
Advisory Published
12:00 AM
Data Sourced
12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using HSQLDB that pass untrusted input to java.sql.Statement or java.sql.PreparedStatement are exposed. In the affected behavior, an attacker may be able to invoke static methods from Java classes on the application's classpath.

2

Is the default configuration affected?

Yes. Before the corrected behavior, HSQLDB allowed calls to any static method of any Java class in the classpath by default. This can result in remote code execution when untrusted input is processed through Statement or PreparedStatement.

3

What can be done if the package cannot be updated immediately?

Restrict callable classes by setting the hsqldb.method_class_names system property to an explicit allowlist. For example, set System.setProperty("hsqldb.method_class_names","abc") or start Java with -Dhsqldb.method_class_names="abc".

4

What changes after updating?

Version 2.5.1-1+deb11u1 denies access to all classes by default except classes in java.lang.Math. Any additional classes that need to be callable must be manually enabled.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203