CVE-2018-18021: Software Security Vulnerability Vulnerability
HIGHCVE-2018-18021 is a HIGH (CVSS 7.1) security vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.. Remediation is available in the latest vendor maintenance releases.
CVE-2018-18021 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2018-18021
To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-18021, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree
Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Software, 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
References
Frequently Asked Questions
What is CVE-2018-18021?
Which Software versions are affected?
What version fixes CVE-2018-18021?
What is the CVSS score of CVE-2018-18021?
What CWE is associated with CVE-2018-18021?
How can I check Maven dependencies for CVE-2018-18021?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6vp5-5gv4-mcqp",
"modified" : "2022-05-14T01:14:00Z",
"published" : "2022-05-14T01:14:00Z",
"aliases" : [ "CVE-2018-18021" ],
"details" : "arch/arm64/kvm/guest.c in KVM in the Linux kernel before 4.18.12 on the arm64 platform mishandles the KVM_SET_ON_REG ioctl. This is exploitable by attackers who can create virtual machines. An attacker can arbitrarily redirect the hypervisor flow of control (with full register control). An attacker can also cause a denial of service (hypervisor panic) via an illegal exception return. This occurs because of insufficient restrictions on userspace access to the core register file, and because PSTATE.M validation does not prevent unintended execution modes.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-18021"
}, {
"type" : "WEB",
"url" : "https://github.com/torvalds/linux/commit/2a3f93459d689d990b3ecfbe782fec89b97d3279"
}, {
"type" : "WEB",
"url" : "https://github.com/torvalds/linux/commit/d26c25a9d19b5976b319af528886f89cf455692d"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:3656"
}, {
"type" : "WEB",
"url" : "https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.12"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3821-1"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3821-2"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3931-1"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3931-2"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2018/dsa-4313"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2018/10/02/2"
}, {
"type" : "WEB",
"url" : "http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2a3f93459d689d990b3ecfbe782fec89b97d3279"
}, {
"type" : "WEB",
"url" : "http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d26c25a9d19b5976b319af528886f89cf455692d"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/105550"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : false,
"github_reviewed_at" : null,
"nvd_published_at" : "2018-10-07T06:29:00Z"
}
}