Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS03N3h4LXJ4dmgtcTY4Ms4AAvLg
HyperSQL DataBase vulnerable to remote code execution when processing untrusted input
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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03N3h4LXJ4dmgtcTY4Ms4AAvLg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 2 years ago
Updated: almost 2 years ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-77xx-rxvh-q682, CVE-2022-41853
References:
- https://nvd.nist.gov/vuln/detail/CVE-2022-41853
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7
- http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control
- https://lists.debian.org/debian-lts-announce/2022/12/msg00020.html
- https://www.debian.org/security/2023/dsa-5313
- https://github.com/advisories/GHSA-77xx-rxvh-q682
Affected Packages
maven:org.hsqldb:hsqldb
Dependent packages: 3,015Dependent repositories: 55,106
Downloads:
Affected Version Ranges: < 2.7.1
Fixed in: 2.7.1
All affected versions: 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
All unaffected versions: 2.7.1, 2.7.2, 2.7.3, 2.7.4