{"id":"UBUNTU-CVE-2022-41853","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.","modified":"2026-10-17T12:51:21.361137376Z","published":"2022-10-06T18:17:00Z","upstream":["CVE-2022-41853"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-41853"},{"type":"REPORT","url":"http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_access_control"},{"type":"REPORT","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-41853"}],"affected":[{"package":{"name":"hsqldb","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.9+dfsg-4ubuntu1","2.3.3+dfsg2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.3.3+dfsg2-1"},{"binary_name":"libhsqldb-java","binary_version":"2.3.3+dfsg2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}},{"package":{"name":"hsqldb","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0-2","2.4.1-2~18.04"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.4.1-2~18.04"},{"binary_name":"libhsqldb-java","binary_version":"2.4.1-2~18.04"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}},{"package":{"name":"hsqldb","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.0-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.5.0-1build2"},{"binary_name":"libhsqldb-java","binary_version":"2.5.0-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}},{"package":{"name":"hsqldb","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.1-1","2.6.0-1","2.6.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.6.1-1"},{"binary_name":"libhsqldb-java","binary_version":"2.6.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}},{"package":{"name":"hsqldb","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.7.2-1"},{"binary_version":"2.7.2-1","binary_name":"libhsqldb-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}},{"package":{"name":"hsqldb","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.7.4-1"},{"binary_name":"libhsqldb-java","binary_version":"2.7.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}},{"package":{"name":"hsqldb","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.4-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.7.4-1build1"},{"binary_version":"2.7.4-1build1","binary_name":"libhsqldb-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}},{"package":{"name":"hsqldb","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/hsqldb?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.4-1","2.7.4-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"hsqldb-utils","binary_version":"2.7.4-1build1"},{"binary_version":"2.7.4-1build1","binary_name":"libhsqldb-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}