CVE-2018-25046 Path traversal in code.cloudfoundry.org/archiver

Critical 9.1 Published Updated

Attackers can write or overwrite files outside the target directory via malicious archives in the Cloud Foundry archiver 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-25046?

CVE-2018-25046 is a critical path traversal vulnerability in code.cloudfoundry.org/archiver/extractor, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

Weakness: CWE-22

Which versions are affected by CVE-2018-25046?

5 open source packages ship an affected version, including code.cloudfoundry.org/archiver and github.com/cloudfoundry/archiver. It affects 1 product.

PackageAffectedFixed in
code.cloudfoundry.org/archiver GoAll versions0.0.0-20180523222229-09b5706aa936
code.cloudfoundry.org/archiver GoAll versions0.0.0-20180523222229-09b5706aa936
code.cloudfoundry.org/archiver GoAll versions0.0.0-20180523222229-09b5706aa936
github.com/cloudfoundry/archiver GoAll versions0.0.0-20180523222229-09b5706aa936
github.com/cloudfoundry/archiver GoAll versions0.0.0-20180523222229-09b5706aa936

Products include Cloudfoundry Archiver.

How do I fix CVE-2018-25046?

Upgrade code.cloudfoundry.org/archiver to 0.0.0-20180523222229-09b5706aa936 or later.

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

Is CVE-2018-25046 being exploited?

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

Sources

Also known as GHSA-32qh-8vg6-9g43, GO-2020-0025.

Is CVE-2018-25046 in your software?

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

Check your SBOMs for free