CVE-2024-10389 Path Traversal in Safearchive

Medium 5.9 Published Updated

Attackers can write arbitrary files via symbolic links in archives on case-insensitive filesystems, potentially leading to code execution.

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

What is CVE-2024-10389?

CVE-2024-10389 is a medium-severity path traversal vulnerability in Google Safearchive, published on 4 Nov 2024. 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

There exists a Path Traversal vulnerability in Safearchive on Platforms with Case-Insensitive Filesystems (e.g., NTFS). This allows Attackers to Write Arbitrary Files via Archive Extraction containing symbolic links. We recommend upgrading past commit f7ce9d7b6f9c6ecd72d0b0f16216b046e55e44dc

Weakness: CWE-22, CWE-427

Which versions are affected by CVE-2024-10389?

3 open source packages ship an affected version, including github.com/google/safearchive. It affects 1 product.

PackageAffectedFixed in
github.com/google/safearchive GoAll versions0.0.0-20241025131057-f7ce9d7b6f9c
github.com/google/safearchive GoAll versions0.0.0-20241025131057-f7ce9d7b6f9c
github.com/google/safearchive GoAll versions0.0.0-20241025131057-f7ce9d7b6f9c

Products include Google Safearchive.

How do I fix CVE-2024-10389?

Upgrade github.com/google/safearchive to 0.0.0-20241025131057-f7ce9d7b6f9c or later.

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

Is CVE-2024-10389 being exploited?

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

Sources

Also known as GHSA-q3rp-vvm7-j8jg, GO-2024-3251.

Is CVE-2024-10389 in your software?

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

Check your SBOMs for free