GHSA-77xx-rxvh-q682

Suggest an improvement
Source
https://github.com/advisories/GHSA-77xx-rxvh-q682
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-77xx-rxvh-q682/GHSA-77xx-rxvh-q682.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-77xx-rxvh-q682
Aliases
Published
2022-10-06T18:52:05Z
Modified
2023-11-08T04:10:33.219963Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
HyperSQL DataBase vulnerable to remote code execution when processing untrusted input
Details

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.methodclassnames" 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.

References

Affected packages

Maven / org.hsqldb:hsqldb

Package

Name
org.hsqldb:hsqldb
View open source insights on deps.dev
Purl
pkg:maven/org.hsqldb/hsqldb

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.1

Affected versions

1.*

1.8.0.10

2.*

2.0.0
2.2.4
2.2.6
2.2.7
2.2.8
2.2.9
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.4.0
2.4.1
2.5.0
2.5.1
2.5.2
2.6.0
2.6.1
2.7.0