CVE-2018-10862: Wildfly server Improper Limitation Of A Pathname Vulnerability
MODERATECVE-2018-10862 is a MODERATE (CVSS 5.5) improper limitation of a pathname vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Wildfly server libraries in the Maven ecosystem. The issue involves improper limitation of a pathname to a restricted directory in wildfly. Remediation is available by upgrading affected packages to version 6.0.0.Alpha3.
CVE-2018-10862 at a Glance
Security Impact
CVSS: 5.5
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:N).
How to Fix CVE-2018-10862
To remediate this vulnerability, upgrade all affected Wildfly server 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.wildfly.core</groupId>
<artifactId>wildfly-server</artifactId>
<version>6.0.0.Alpha3</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.wildfly.core
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-10862, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.wildfly.core
Analyze the terminal output to locate any version of Wildfly server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.0.Alpha3), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.wildfly.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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Wildfly server, 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-2018-10862 Affected Wildfly server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.wildfly.core:wildfly-server
|
Maven |
< 6.0.0.Alpha3
|
6.0.0.Alpha3
|
References
Frequently Asked Questions
What is CVE-2018-10862?
Which Wildfly server versions are affected?
What version fixes CVE-2018-10862?
Is wildfly-server affected?
What is the CVSS score of CVE-2018-10862?
What CWE is associated with CVE-2018-10862?
How can I check Maven dependencies for CVE-2018-10862?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w8r2-5j8x-x8j6",
"modified" : "2022-06-29T23:30:02Z",
"published" : "2022-05-14T01:06:25Z",
"aliases" : [ "CVE-2018-10862" ],
"summary" : "Improper Limitation of a Pathname to a Restricted Directory in WildFly",
"details" : "WildFly Core before version 6.0.0.Alpha3 does not properly validate file paths in .war archives, allowing for the extraction of crafted .war archives to overwrite arbitrary files. This is an instance of the 'Zip Slip' vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.wildfly.core:wildfly-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.0.0.Alpha3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.0.0.Alpha2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-10862"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2276"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2277"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2279"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2423"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2424"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2425"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2428"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2643"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:0877"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10862"
}, {
"type" : "WEB",
"url" : "https://snyk.io/research/zip-slip-vulnerability"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-29T23:30:02Z",
"nvd_published_at" : "2018-07-27T14:29:00Z"
}
}