{"answers":{"affected":"2 open source packages ship an affected version, including org.hsqldb:hsqldb. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-41853 in the wild and no public exploit code.","fix":"Upgrade org.hsqldb:hsqldb to 2.7.1 or later.","what":"CVE-2022-41853 is a high-severity code injection vulnerability in Debian Debian Linux, published on 6 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-41853 and fix it if it is affected.\n\nWhat it is: CVE-2022-41853 is a high-severity code injection vulnerability in Debian Debian Linux, published on 6 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-41853 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.hsqldb:hsqldb (Maven): affected all versions; fixed in 2.7.1\n- org.hsqldb:hsqldb (Maven): affected all versions; fixed in 2.7.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-41853/ (Markdown: https://insights.sbomify.com/CVE-2022-41853/index.md)","id":"CVE-2022-41853","markdown":"https://insights.sbomify.com/CVE-2022-41853/index.md","name":"CVE-2022-41853","record":{"aliases":["CLEANSTART-2026-VM57227","DEBIAN-CVE-2022-41853","DLA-3234-1","DSA-5313-1","GHSA-77xx-rxvh-q682","OESA-2023-1924","OESA-2023-1944","RHSA-2022:8559","RHSA-2022:8560","SUSE-SU-2022:3823-1","SUSE-SU-2022:3864-1","UBUNTU-CVE-2022-41853","openSUSE-SU-2024:12450-1"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"HyperSQL database","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code via SQL statements in HyperSQL database due to unrestricted static method calls.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"hypersql_database","vendor":"hsqldb"}],"cvss":{"score":8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"description":"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.","ecosystems":["Maven","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:rhel_els:6","SUSE:Linux Enterprise Software Development Kit 12 SP5","openSUSE:Leap 15.3","openSUSE:Leap 15.4"],"exploits":{"exploitdb":0,"first_seen":"2023-11-24","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-11-24T10:30:56Z","kind":"github_poc","ref":"https://github.com/mbadanoiu/CVE-2022-41853","stars":2,"title":"Research into CVE-2022-41853: Using static functions to obtian RCE via Java Deserialization \u0026 Remote Codebase Attack"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Remote code execution in HyperSQL DataBase","id":"CVE-2022-41853","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"code_injection","year":"2022"},"n_packages":25,"n_references":4,"next":{"headline":"Stack Overflow in Snakeyaml","id":"CVE-2022-41854"},"packages":[{"ecosystem":"Maven","fixed":["2.7.1"],"introduced":["0"],"last_affected":[],"package":"org.hsqldb:hsqldb","purl":null,"source":"GHSA-77xx-rxvh-q682"},{"ecosystem":"Maven","fixed":["2.7.1"],"introduced":["0"],"last_affected":[],"package":"org.hsqldb:hsqldb","purl":"pkg:maven/org.hsqldb/hsqldb","source":"GHSA-77xx-rxvh-q682"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/redhat/hsqldb","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-demo","purl":"pkg:rpm/redhat/hsqldb-demo","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-javadoc","purl":"pkg:rpm/redhat/hsqldb-javadoc","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-manual","purl":"pkg:rpm/redhat/hsqldb-manual","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/redhat/hsqldb","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-demo","purl":"pkg:rpm/redhat/hsqldb-demo","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-javadoc","purl":"pkg:rpm/redhat/hsqldb-javadoc","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-manual","purl":"pkg:rpm/redhat/hsqldb-manual","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/redhat/hsqldb","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-demo","purl":"pkg:rpm/redhat/hsqldb-demo","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-javadoc","purl":"pkg:rpm/redhat/hsqldb-javadoc","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-manual","purl":"pkg:rpm/redhat/hsqldb-manual","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/redhat/hsqldb","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-demo","purl":"pkg:rpm/redhat/hsqldb-demo","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-javadoc","purl":"pkg:rpm/redhat/hsqldb-javadoc","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:1.8.1.3-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"hsqldb-manual","purl":"pkg:rpm/redhat/hsqldb-manual","source":"RHSA-2022:8560"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["1:1.8.0.10-13.el6_10"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/redhat/hsqldb","source":"RHSA-2022:8559"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["1:1.8.0.10-13.el6_10"],"introduced":["0"],"last_affected":[],"package":"hsqldb-demo","purl":"pkg:rpm/redhat/hsqldb-demo","source":"RHSA-2022:8559"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["1:1.8.0.10-13.el6_10"],"introduced":["0"],"last_affected":[],"package":"hsqldb-javadoc","purl":"pkg:rpm/redhat/hsqldb-javadoc","source":"RHSA-2022:8559"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["1:1.8.0.10-13.el6_10"],"introduced":["0"],"last_affected":[],"package":"hsqldb-manual","purl":"pkg:rpm/redhat/hsqldb-manual","source":"RHSA-2022:8559"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["2.2.9-5.3.1"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/suse/hsqldb\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2022:3864-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["2.3.3-150000.7.3.1"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/opensuse/hsqldb\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-SU-2022:3823-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.3.3-150000.7.3.1"],"introduced":["0"],"last_affected":[],"package":"hsqldb","purl":"pkg:rpm/opensuse/hsqldb\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:3823-1"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2022-41852"},"products":["hsqldb"],"published":"2022-10-06","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-21","vendors":["HyperSQL DataBase"]},"summary":"Attackers can execute arbitrary code via SQL statements in HyperSQL database due to unrestricted static method calls.","url":"https://insights.sbomify.com/CVE-2022-41853/"}