Vulnerabilities in pkg:maven/org.apache.isis.core/isis-core
PACKAGECVE-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.
pkg:maven/org.apache.isis.core/isis-core
Vulnerability advisories affecting package pkg:maven/org.apache.isis.core/isis-core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-998r-j9rx-qm8m | CVE-2022-42467 | MODERATE | Apache Isis webconsole module may directly query the database in prototype mode |
| GHSA-7pfc-cc9x-8p4m | CVE-2022-42466 | MODERATE | Apache Isis Cross-site Scripting vulnerability |
CVE-2022-42467 at a Glance
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).
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.
<dependency>
<groupId>org.apache.isis.core</groupId>
<artifactId>isis-core</artifactId>
<version>2.0.0-M8</version>
</dependency>
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
CVE-2022-42467 Affected Isis core Versions
1 component(s)| 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?
Which Isis core versions are affected?
What version fixes CVE-2022-42467?
Is isis-core affected?
What is the CVSS score of CVE-2022-42467?
What CWE is associated with CVE-2022-42467?
How can I check Maven dependencies for CVE-2022-42467?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}