HyperSQL let SQL call any Java static method by default
Original title: USN-9298-1: HyperSQL vulnerability
After USN-9298-1, only java.lang.Math is callable by default; other classes must be listed in hsqldb.method_class_names.
Ubuntu notice USN-9298-1 says HyperSQL allowed SQL statements to call any static method of any Java class on the classpath by default. If an application passed untrusted input into those statements, an attacker could possibly execute arbitrary code. The update limits default calls to methods of java.lang.Math; other classes must be named in the hsqldb.method_class_names system property.
Unconfirmed: The snippet does not state affected versions, a fixed version number, or whether the issue is being exploited.
- Arbitrary code execution depends on the application feeding untrusted input to SQL.
- Extra Java classes are allowed only via hsqldb.method_class_names.
- The notice snippet names no CVE and no version range.
Impact: Possible arbitrary code execution through untrusted SQL input
| Product | Affected |
|---|---|
| HyperSQL | — |
- 1.Install the HyperSQL update from Ubuntu USN-9298-1.
- 2.Allow extra Java classes only through hsqldb.method_class_names.
From the original article
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.
ubuntu.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.