USN-9298-1: HyperSQL vulnerability
It was discovered that HyperSQL allowed SQL statements to call any static method of any Java class in the classpath by default. If an application passed untrusted input to HyperSQL statements, an attacker could possibly use this issue to execute arbitrary code. After this update, only the methods of java.lang.Math can be called by default, and other classes must be listed in the hsqldb.methodclassnames system property.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/libhsqldb-javato a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/libhsqldb-javato a version that resolves this vulnerability.Fixed in 2.3.3+dfsg2-1ubuntu0.1~esm1
Event History
Frequently Asked Questions
Which deployments are realistically exposed to arbitrary code execution?
Deployments are exposed when an application passes untrusted input into HyperSQL statements and HyperSQL can invoke static methods from Java classes available on its classpath. The issue can allow that input to be used to execute arbitrary code.
Is the default method-call configuration affected?
Yes. Before the update, HyperSQL allowed SQL statements to call static methods from any Java class on the classpath by default. After the update, only methods in java.lang.Math are callable by default.
What configuration is needed if an application requires static methods from classes other than java.lang.Math?
Other permitted classes must be explicitly listed in the hsqldb.method_class_names system property.