CVE-2022-42467: Isis core Apache Isis Webconsole Module May Vulnerability

MODERATE
Advisory Identifier: GHSA-998r-j9rx-qm8m
CVSS 5.3
CWE-1188
Published
Advisory Summary

CVE-2022-42467 is a MODERATE (CVSS 5.3) apache isis webconsole module may vulnerability (CWE-1188: Initialization of a Resource with an Insecure Default) affecting Isis core libraries in the Maven ecosystem. The issue involves apache isis webconsole module may directly query the database in prototype mode. Remediation is available by upgrading affected packages to version 2.0.0-M8.

CVE-2022-42467 at a Glance

CVE Identifier CVE-2022-42467
GHSA Identifier GHSA-998r-j9rx-qm8m
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-1188: Initialization of a Resource with an Insecure Default
Affected Product Isis core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2022-42467

To remediate this vulnerability, upgrade all affected Isis core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.isis.core:isis-core fixed: 2.0.0-M8
<dependency>
    <groupId>org.apache.isis.core</groupId>
    <artifactId>isis-core</artifactId>
    <version>2.0.0-M8</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.isis.core

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2022-42467, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.isis.core

Analyze the terminal output to locate any version of Isis core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0-M8), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.isis.core command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1188: Initialization of a Resource with an Insecure Default, where the product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure. In Isis core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

When running in prototype mode, the h2 webconsole module (accessible from the Prototype menu) is automatically made available with the ability to directly query the database. It was felt that it is safer to require the developer to explicitly enable this capability. As of 2.0.0-M8, this can now be done using the `isis.prototyping.h2-console.web-allow-remote-access` configuration property; the web console will be unavailable without setting this configuration. As an additional safeguard, the new `isis.prototyping.h2-console.generate-random-web-admin-password` configuration parameter (enabled by default) requires that the administrator use a randomly generated password to use the console. The password is printed to the log, as `webAdminPass: xxx` (where `xxx`) is the password. To revert to the original behaviour, the administrator would therefore need to set these configuration parameter: `isis.prototyping.h2-console.web-allow-remote-access=true isis.prototyping.h2-console.generate-random-web-admin-password=false` Note also that the h2 webconsole is never available in production mode, so these safeguards are only to ensure that the webconsole is secured by default also in prototype mode.

CVE-2022-42467 Affected Isis core Versions

1 component(s)
Fixed Versions:
2.0.0-M8
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.isis.core:isis-core
Maven
< 2.0.0-M8
2.0.0-M8

References

Frequently Asked Questions

What is CVE-2022-42467?
CVE-2022-42467 is a security vulnerability in Isis core involving Apache Isis webconsole module may directly query the database in prototype mode under CWE-1188: Initialization of a Resource with an Insecure Default.
Which Isis core versions are affected?
Affected versions include releases prior to 2.0.0-M8 across affected packages: org.apache.isis.core:isis-core.
What version fixes CVE-2022-42467?
Upgrading to 2.0.0-M8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is isis-core affected?
Yes, org.apache.isis.core:isis-core is affected in releases prior to 2.0.0-M8. Upgrade your dependency to 2.0.0-M8 or later.
What is the CVSS score of CVE-2022-42467?
CVE-2022-42467 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2022-42467?
CVE-2022-42467 is classified under CWE-1188: Initialization of a Resource with an Insecure Default (The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.).
How can I check Maven dependencies for CVE-2022-42467?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.isis.core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-998r-j9rx-qm8m",
  "modified" : "2024-08-01T21:47:51Z",
  "published" : "2022-10-19T12:00:18Z",
  "aliases" : [ "CVE-2022-42467" ],
  "summary" : "Apache Isis webconsole module may directly query the database in prototype mode",
  "details" : "When running in prototype mode, the h2 webconsole module (accessible from the Prototype menu) is automatically made available with the ability to directly query the database. It was felt that it is safer to require the developer to explicitly enable this capability. As of 2.0.0-M8, this can now be done using the `isis.prototyping.h2-console.web-allow-remote-access` configuration property; the web console will be unavailable without setting this configuration. As an additional safeguard, the new `isis.prototyping.h2-console.generate-random-web-admin-password` configuration parameter (enabled by default) requires that the administrator use a randomly generated password to use the console. The password is printed to the log, as `webAdminPass: xxx` (where `xxx`) is the password. To revert to the original behaviour, the administrator would therefore need to set these configuration parameter: `isis.prototyping.h2-console.web-allow-remote-access=true isis.prototyping.h2-console.generate-random-web-admin-password=false` Note also that the h2 webconsole is never available in production mode, so these safeguards are only to ensure that the webconsole is secured by default also in prototype mode.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.isis.core:isis-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0-M8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-42467"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/isis/commit/9fcab9816dac37e0f07ffe3f5c4f47df9cec8694"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/isis"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/jbv2ddt00h7ntlbm6vkk4wdmb31pm8q3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2022/10/19/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1188" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-19T18:48:29Z",
    "nvd_published_at" : "2022-10-19T08:15:00Z"
  }
}