ubuntu-cve-2022-41853
Vulnerability from osv_ubuntu
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": [
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "hsqldb",
"purl": "pkg:deb/ubuntu/hsqldb@2.3.3+dfsg2-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.2.9+dfsg-4ubuntu1",
"2.3.3+dfsg2-1"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "hsqldb",
"purl": "pkg:deb/ubuntu/hsqldb@2.4.1-2~18.04?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.0-2",
"2.4.1-2~18.04"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "hsqldb-utils",
"binary_version": "2.5.0-1build2"
},
{
"binary_name": "libhsqldb-java",
"binary_version": "2.5.0-1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "hsqldb",
"purl": "pkg:deb/ubuntu/hsqldb@2.5.0-1build2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.5.0-1build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "hsqldb-utils",
"binary_version": "2.6.1-1"
},
{
"binary_name": "libhsqldb-java",
"binary_version": "2.6.1-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "hsqldb",
"purl": "pkg:deb/ubuntu/hsqldb@2.6.1-1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.5.1-1",
"2.6.0-1",
"2.6.1-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "hsqldb-utils",
"binary_version": "2.7.2-1"
},
{
"binary_name": "libhsqldb-java",
"binary_version": "2.7.2-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "hsqldb",
"purl": "pkg:deb/ubuntu/hsqldb@2.7.2-1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.2-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "hsqldb-utils",
"binary_version": "2.7.4-1"
},
{
"binary_name": "libhsqldb-java",
"binary_version": "2.7.4-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "hsqldb",
"purl": "pkg:deb/ubuntu/hsqldb@2.7.4-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.4-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "hsqldb-utils",
"binary_version": "2.7.4-1build1"
},
{
"binary_name": "libhsqldb-java",
"binary_version": "2.7.4-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "hsqldb",
"purl": "pkg:deb/ubuntu/hsqldb@2.7.4-1build1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.4-1",
"2.7.4-1build1"
]
}
],
"aliases": [],
"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": "UBUNTU-CVE-2022-41853",
"modified": "2026-05-20T14:56:12Z",
"published": "2022-10-06T18:17:00Z",
"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"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"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": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-41853"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.