{"answers":{"affected":"2 open source packages ship an affected version, including com.h2database:h2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-45868 exists.","fix":"Upgrade com.h2database:h2 to 2.2.220 or later.","what":"CVE-2022-45868 is a high-severity vulnerability in n/a, published on 23 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-45868 and fix it if it is affected.\n\nWhat it is: CVE-2022-45868 is a high-severity vulnerability in n/a, published on 23 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-45868 exists.\n\nAffected packages and fixed versions:\n- com.h2database:h2 (Maven): affected from 1.4.198; fixed in 2.2.220\n- com.h2database:h2 (Maven): affected from 1.4.198; fixed in 2.2.220\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-45868/ (Markdown: https://insights.sbomify.com/CVE-2022-45868/index.md)","id":"CVE-2022-45868","markdown":"https://insights.sbomify.com/CVE-2022-45868/index.md","name":"CVE-2022-45868","record":{"aliases":["CLSA-2026-1786683223","DEBIAN-CVE-2022-45868","GHSA-22wj-vf5f-wrvj","RHLW-2026-7a34ef2db32d7967","ROOT-APP-MAVEN-CVE-2022-45868"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"H2 Database Engine","requires_auth":"none","summary":"Local attackers can discover the H2 web admin console password by inspecting process arguments, potentially leading to unauthorized database access.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"h2","vendor":"h2database"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:N/S:U/UI:N","version":"3.1"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"}],"description":"The web-based admin console in H2 Database Engine before 2.2.220 can be started via the CLI with the argument -webAdminPassword, which allows the user to specify the password in cleartext for the web admin console. Consequently, a local user (or an attacker that has obtained local access through some means) would be able to discover the password by listing processes and their arguments. NOTE: the vendor states \"This is not a vulnerability of H2 Console ... Passwords should never be passed on the command line and every qualified DBA or system administrator is expected to know that.\" Nonetheless, the issue was fixed in 2.2.220.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Password exposure in H2 Database","id":"CVE-2022-45868","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":2,"n_references":6,"next":{"headline":"Race condition in n/a","id":"CVE-2022-45869"},"packages":[{"ecosystem":"Maven","fixed":["2.2.220"],"introduced":["1.4.198"],"last_affected":[],"package":"com.h2database:h2","purl":null,"source":"GHSA-22wj-vf5f-wrvj"},{"ecosystem":"Maven","fixed":["2.2.220"],"introduced":["1.4.198"],"last_affected":[],"package":"com.h2database:h2","purl":"pkg:maven/com.h2database/h2","source":"GHSA-22wj-vf5f-wrvj"}],"prev":{"headline":"Path traversal in n/a","id":"CVE-2022-45867"},"products":["n/a"],"published":"2022-11-23","related":[{"cvss_score":8.1,"headline":"XML External Entity (XXE) Injection","id":"CVE-2021-23463","kev_date_added":null,"published":"2021-12-10"},{"cvss_score":6.5,"headline":"Path traversal in n/a","id":"CVE-2018-14335","kev_date_added":null,"published":"2018-07-24"}],"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":"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-19","vendors":["n/a"]},"summary":"Local attackers can discover the H2 web admin console password by inspecting process arguments, potentially leading to unauthorized database access.","url":"https://insights.sbomify.com/CVE-2022-45868/"}