ghsa-77xx-rxvh-q682
Vulnerability from github
Published
2022-10-06 18:52
Modified
2023-01-11 22:59
Severity ?
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.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.
{ "affected": [ { "package": { "ecosystem": "Maven", "name": "org.hsqldb:hsqldb" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.7.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-41853" ], "database_specific": { "cwe_ids": [ "CWE-470" ], "github_reviewed": true, "github_reviewed_at": "2022-10-06T21:16:51Z", "nvd_published_at": "2022-10-06T18:17:00Z", "severity": "CRITICAL" }, "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.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.", "id": "GHSA-77xx-rxvh-q682", "modified": "2023-01-11T22:59:28Z", "published": "2022-10-06T18:52:05Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-41853" }, { "type": "WEB", "url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7" }, { "type": "WEB", "url": "https://lists.debian.org/debian-lts-announce/2022/12/msg00020.html" }, { "type": "PACKAGE", "url": "https://sourceforge.net/projects/hsqldb" }, { "type": "WEB", "url": "https://www.debian.org/security/2023/dsa-5313" }, { "type": "WEB", "url": "http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "HyperSQL DataBase vulnerable to remote code execution when processing untrusted input" }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.