CVE-2018-10862 Improper Limitation of a Pathname to a Restricted Directory in WildFly

Medium 5.5 Published Updated

Attackers can overwrite arbitrary files via crafted .war archives in WildFly Core, potentially leading to code execution or data modification.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2018-10862?

CVE-2018-10862 is a medium-severity path traversal vulnerability in Redhat Jboss Enterprise Application Platform, published on 27 Jul 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2018-10862?

2 open source packages ship an affected version, including org.wildfly.core:wildfly-server. It affects 3 products.

PackageAffectedFixed in
org.wildfly.core:wildfly-server MavenAll versions6.0.0.Alpha3
org.wildfly.core:wildfly-server MavenAll versions6.0.0.Alpha3

Products include Redhat Jboss Enterprise Application Platform, Redhat Virtualization, Redhat Wildfly Core.

How do I fix CVE-2018-10862?

Upgrade org.wildfly.core:wildfly-server to 6.0.0.Alpha3 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-10862 being exploited?

There is no known exploitation of CVE-2018-10862 in the wild and no public exploit code.

All Redhat Jboss Enterprise Application Platform vulnerabilities

Sources

Also known as GHSA-w8r2-5j8x-x8j6.

Is CVE-2018-10862 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free