CVE-2018-20227 RDF4J vulnerable to zip slip

High 7.5 Published Updated

An attacker can read arbitrary files by exploiting directory traversal in ZIP archive entries within the RDF4J library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-20227?

CVE-2018-20227 is a high-severity path traversal vulnerability in n/a, published on 19 Dec 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

RDF4J 2.4.2 allows Directory Traversal via ../ in an entry in a ZIP archive.

Weakness: CWE-22

Which versions are affected by CVE-2018-20227?

2 open source packages ship an affected version, including org.eclipse.rdf4j:rdf4j. It affects 1 product.

PackageAffectedFixed in
org.eclipse.rdf4j:rdf4j MavenAll versions2.5.0
org.eclipse.rdf4j:rdf4j MavenAll versions2.5.0

Products include Eclipse Rdf4j.

How do I fix CVE-2018-20227?

Upgrade org.eclipse.rdf4j:rdf4j to 2.5.0 or later.

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

Is CVE-2018-20227 being exploited?

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

Sources

Also known as GHSA-x3cr-x949-h5jv.

Is CVE-2018-20227 in your software?

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

Check your SBOMs for free