CVE-2021-40153

squashfs-tools: unvalidated filepaths allow writing outside of destination

Published Aug 27, 2021 CVSS 3.1 · 8.1 High EPSS 2.5% KEV · Not listed
Description
squashfs_opendir in unsquash-1.c in Squashfs-Tools 4.5 stores the filename in the directory entry; this is then used by unsquashfs to create the new file during the unsquash. The filename is not validated for traversal outside of the destination directory, and thus allows writing to locations outside of the destination.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2752-1 squashfs-tools security update
Debian DSA Debian DSA DSA-4967-1 squashfs-tools security update
EUVD EUVD EUVD-2021-27338 squashfs_opendir in unsquash-1.c in Squashfs-Tools 4.5 stores the filename in the directory entry; this is then used by unsquashfs to create the new file during the unsquash. The filename is not validated for traversal outside of the destination directory, and thus allows writing to locations outside of the destination.
Ubuntu USN Ubuntu USN USN-5057-1 Squashfs-Tools vulnerability
Ubuntu USN Ubuntu USN USN-5078-2 Squashfs-Tools vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 2:27 AM
Reserved
Aug 27, 2021, 12:00 AM
Status
Modified
Published
Aug 27, 2021, 3:15 PM
Modified
Jun 17, 2026, 4:06 AM
Severity
Moderate
Public date
Sep 10, 2019, 12:00 AM