#VU69302 Exposed dangerous method or function in HyperSQL database


Published: 2023-12-06

Vulnerability identifier: #VU69302

Vulnerability risk: High

CVSSv3.1: 8.8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2022-41853

CWE-ID: CWE-749

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
HyperSQL database
Server applications / Database software

Vendor: HSQLDB

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to missing authorization when using java.sql.Statement or java.sql.PreparedStatement in hsqldb. By default it is allowed to call any static method of any Java class in the classpath resulting in code execution.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

HyperSQL database: 2.0.0 - 2.7.0


External links
http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control
http://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability