CVE-2021-41072 Path traversal in n/a

High 8.1 Published Updated

Crafted squashfs filesystems allow unsquashfs to write files outside the target directory via symbolic link traversal, potentially modifying arbitrary files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-41072?

CVE-2021-41072 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 14 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

squashfs_opendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153. A squashfs filesystem that has been crafted to include a symbolic link and then contents under the same filename in a filesystem can cause unsquashfs to first create the symbolic link pointing outside the expected directory, and then the subsequent write operation will cause the unsquashfs process to write through the symbolic link elsewhere in the filesystem.

Weakness: CWE-59, CWE-22

Which versions are affected by CVE-2021-41072?

It affects 2 products.

Linux distribution packages (1)
squashfs openSUSE:TumbleweedAll versions4.5.1-1.1

Products include Debian Debian Linux, Squashfs-Tools Project Squashfs-Tools.

How do I fix CVE-2021-41072?

Apply the vendor's patch.

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

Is CVE-2021-41072 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2021-41072, AZL-7464, CLSA-2025-1751888935, DEBIAN-CVE-2021-41072, DLA-2789-1, DSA-4987-1 and 5 more.

Is CVE-2021-41072 in your software?

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

Check your SBOMs for free