CVE-2023-39138 Path traversal in ZIPFoundation

High 7.8 Published Updated

Attackers can execute path traversal attacks by extracting a crafted zip file using the ZIPFoundation library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-39138?

CVE-2023-39138 is a high-severity path traversal vulnerability in n/a, published on 30 Aug 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An issue in ZIPFoundation v0.9.16 allows attackers to execute a path traversal via extracting a crafted zip file.

Weakness: CWE-22

Which versions are affected by CVE-2023-39138?

2 open source packages ship an affected version, including github.com/weichsel/ZIPFoundation. It affects 1 product.

PackageAffectedFixed in
github.com/weichsel/ZIPFoundation SwiftURLAll versions0.9.18
github.com/weichsel/ZIPFoundation SwiftURLAll versions0.9.18

Products include Peakstep Zipfoundation.

How do I fix CVE-2023-39138?

Upgrade github.com/weichsel/ZIPFoundation to 0.9.18 or later.

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

Is CVE-2023-39138 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39138 exists.

Sources

Also known as GHSA-c2cc-3569-6jh2.

Is CVE-2023-39138 in your software?

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

Check your SBOMs for free