{"answers":{"affected":"2 open source packages ship an affected version, including com.h2database:h2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-23463 in the wild and no public exploit code.","fix":"Upgrade com.h2database:h2 to 2.0.202 or later.","what":"CVE-2021-23463 is a high-severity vulnerability in com.h2database:h2, published on 10 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-23463 and fix it if it is affected.\n\nWhat it is: CVE-2021-23463 is a high-severity vulnerability in com.h2database:h2, published on 10 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-23463 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.h2database:h2 (Maven): affected from 1.4.198; fixed in 2.0.202\n- com.h2database:h2 (Maven): affected from 1.4.198; fixed in 2.0.202\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-2021-23463/ (Markdown: https://insights.sbomify.com/CVE-2021-23463/index.md)","id":"CVE-2021-23463","markdown":"https://insights.sbomify.com/CVE-2021-23463/index.md","name":"CVE-2021-23463","record":{"aliases":["GHSA-7rpj-hg47-cx62","SNYK-JAVA-COMH2DATABASE-1769238"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"H2 Database","requires_auth":"low_privilege","summary":"An attacker can exploit XML External Entity injection in the H2 database library to read sensitive files or cause denial of service.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"h2","vendor":"h2database"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H/E:P","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"The package com.h2database:h2 from 1.4.198 and before 2.0.202 are vulnerable to XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object, when it receives parsed string data from org.h2.jdbc.JdbcResultSet.getSQLXML() method. If it executes the getSource() method when the parameter is DOMSource.class it will trigger the vulnerability.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"XML External Entity (XXE) Injection","id":"CVE-2021-23463","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2021"},"n_packages":2,"n_references":6,"next":{"headline":"Prototype Pollution","id":"CVE-2021-23470"},"packages":[{"ecosystem":"Maven","fixed":["2.0.202"],"introduced":["1.4.198"],"last_affected":[],"package":"com.h2database:h2","purl":null,"source":"GHSA-7rpj-hg47-cx62"},{"ecosystem":"Maven","fixed":["2.0.202"],"introduced":["1.4.198"],"last_affected":[],"package":"com.h2database:h2","purl":"pkg:maven/com.h2database/h2","source":"GHSA-7rpj-hg47-cx62"}],"prev":{"headline":"Prototype Pollution","id":"CVE-2021-23460"},"products":["com.h2database:h2"],"published":"2021-12-10","related":[{"cvss_score":8.4,"headline":"Password exposure in H2 Database","id":"CVE-2022-45868","kev_date_added":null,"published":"2022-11-23"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["n/a"]},"summary":"An attacker can exploit XML External Entity injection in the H2 database library to read sensitive files or cause denial of service.","url":"https://insights.sbomify.com/CVE-2021-23463/"}