Investigate vulnerability: Improper Control of Generation of Code ('Code Injection')
Issue created from vulnerability 27
Description:
H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the IGNORE_UNKNOWN_SETTINGS=TRUE;FORBID_CREATION=FALSE;INIT=RUNSCRIPT substring, a different vulnerability than CVE-2021-42392.
- Severity: critical
- Location: pom.xml
Solution:
Upgrade to version 2.1.210 or above.
Identifiers:
- GHSA-45hx-wfhj-473x
- Gemnasium-4b7eca3d-78ec-4d5c-a511-251c3956ee0b
- CVE-2022-23221
- CWE-78
- CWE-1035
- CWE-937
- CWE-94
Links:
- http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html
- http://seclists.org/fulldisclosure/2022/Jan/39
- https://github.com/advisories/GHSA-45hx-wfhj-473x
- https://github.com/h2database/h2database/releases/tag/version-2.1.210
- https://github.com/h2database/h2database/security/advisories
- https://nvd.nist.gov/vuln/detail/CVE-2022-23221
- https://twitter.com/d0nkey_man/status/1483824727936450564
Scanner:
- Name: GitLab SBoM Vulnerability Scanner