GHSA-h376-j262-vhq6

    Dashboard / Vulnerabilities / GHSA-h376-j262-vhq6

    GHSA-h376-j262-vhq6

    Published: 6 Jan 2022Last Modified: 8 Jul 2026

    Summary: RCE in H2 Console

    Details: ### Impact H2 Console in versions since 1.1.100 (2008-10-14) to 2.0.204 (2021-12-21) inclusive allows loading of custom classes from remote servers through JNDI. H2 Console doesn't accept remote connections by default. If remote access was enabled explicitly and some protection method (such as security constraint) wasn't set, an intruder can load own custom class and execute its code in a process with H2 Console (H2 Server process or a web server with H2 Console servlet). It is also possible to load them by creation a linked table in these versions, but it requires `ADMIN` privileges and user with `ADMIN` privileges has full access to the Java process by design. These privileges should never be granted to untrusted users. ### Patches Since version 2.0.206 H2 Console and linked tables explicitly forbid attempts to specify LDAP URLs for JNDI. Only local data sources can be used. ### Workarounds H2 Console should never be available to untrusted users. `-webAllowOthers` is a dangerous setting that should be avoided. H2 Console Servlet deployed on a web server can be protected with a security constraint: https://h2database.com/html/tutorial.html#usingH2ConsoleServlet If `webAllowOthers` is specified, you need to uncomment and edit `<security-role>` and `<security-constraint>` as necessary. See documentation of your web server for more details. ### References This issue was found and privately reported to H2 team by [JFrog Security](https://www.jfrog.com/)'s vulnerability research team with detailed information.

    Affected packages

    Package

    Name: com.h2database:h2

    Purl: pkg:maven/com.h2database/h2

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 1.1.100
    Fixed -2.0.206

    Affected versions

    1.1.100
    1.1.101
    1.1.102
    1.1.103
    1.1.104
    1.1.105
    1.1.106
    1.1.107
    1.1.108
    1.1.109
    1.1.110
    1.1.111
    1.1.112
    1.1.113
    1.1.114
    1.1.115
    1.1.116
    1.1.117
    1.1.118
    1.1.119

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-h376-j262-vhq6 | CVE-DB