Skip to content
Heist/ feed
Back to feed
Critical

hsqldb — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-41853

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.

Products
hsqldb
Affected versions
2.2.9+dfsg-4ubuntu1, 2.3.3+dfsg2-1, 2.4.0-2, 2.4.1-2~18.04, 2.5.0-1build2, 2.5.1-1, 2.6.0-1, 2.6.1-1, 2.7.2-1, 2.7.4-1, 2.7.4-1build1
Fixed versions
Not specified
CVEs
CVE-2022-41853
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:01 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-41853

core-osv · Original source

Published 6 Oct 2022, 18:17 UTC

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.

osv:UBUNTU-CVE-2022-41853

hsqldb

Fixed versions: Not specified

hsqldb

Fixed versions: Not specified

hsqldb

Fixed versions: Not specified

hsqldb

Fixed versions: Not specified

hsqldb

Fixed versions: Not specified

hsqldb

Fixed versions: Not specified

hsqldb

Fixed versions: Not specified

hsqldb

Fixed versions: Not specified

Complete source record
{
  "id": "c52c7789dd116f4379826c328c6ce9780bd1c19d4a34783e9541b3e1b93e0128",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-41853",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-41853",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2022-41853",
    "products": [
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.9+dfsg-4ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.3.3+dfsg2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.4.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.1-2~18.04",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.0-1build2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.6.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.6.1-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.2-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.4-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.4-1build1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hsqldb",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.4-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.7.4-1build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2022-41853",
      "aliases": [
        "UBUNTU-CVE-2022-41853"
      ],
      "metrics": [
        {
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.2.9+dfsg-4ubuntu1",
            "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"
          },
          "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"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.4.0-2",
            "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"
          },
          "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"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.5.0-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hsqldb-utils",
                "binary_version": "2.5.0-1build2"
              },
              {
                "binary_name": "libhsqldb-java",
                "binary_version": "2.5.0-1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.5.1-1",
            "2.6.0-1",
            "2.6.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hsqldb-utils",
                "binary_version": "2.6.1-1"
              },
              {
                "binary_name": "libhsqldb-java",
                "binary_version": "2.6.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.7.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hsqldb-utils",
                "binary_version": "2.7.2-1"
              },
              {
                "binary_name": "libhsqldb-java",
                "binary_version": "2.7.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.7.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hsqldb-utils",
                "binary_version": "2.7.4-1"
              },
              {
                "binary_name": "libhsqldb-java",
                "binary_version": "2.7.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.7.4-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hsqldb-utils",
                "binary_version": "2.7.4-1build1"
              },
              {
                "binary_name": "libhsqldb-java",
                "binary_version": "2.7.4-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hsqldb",
            "purl": "pkg:deb/ubuntu/hsqldb?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.7.4-1",
            "2.7.4-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41853.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hsqldb-utils",
                "binary_version": "2.7.4-1build1"
              },
              {
                "binary_name": "libhsqldb-java",
                "binary_version": "2.7.4-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:22.520506267Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-41853"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-41853",
        "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50212#c7",
        "https://www.cve.org/CVERecord?id=CVE-2022-41853"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-41853",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 355475,
  "published_at": "2022-10-06T18:17:00+00:00"
}