Skip to main content
No exploitation reportedFix available

CVE-2021-40153

No exploitation reported by the sources we read.

  • Published2021-08-27
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-08-2715:15CVE publishedNVD

Versions per branch

NVD
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
34.x= 34no fix published
33.x= 33no fix published
Redhat enterprise linux
BranchAffectedFixed in
7.0= 7.0no fix published
8.0= 8.0no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • squashfsSUSE:Manager Server 4.2all versions · fixed in 4.6.1-150300.3.3.1
  • squashfsSUSE:Manager Proxy 4.2all versions · fixed in 4.6.1-150300.3.3.1
  • squashfsSUSE:Linux Enterprise Server for SAP Applications 15 SP3all versions · fixed in 4.6.1-150300.3.3.1
  • squashfsSUSE:Linux Enterprise Server for SAP Applications 12 SP5all versions · fixed in 4.6.1-8.3.2
  • squashfsSUSE:Linux Enterprise Server 15 SP3-LTSSall versions · fixed in 4.6.1-150300.3.3.1
  • squashfsSUSE:Linux Enterprise Server 12 SP5all versions · fixed in 4.6.1-8.3.2
  • squashfsSUSE:Linux Enterprise Module for Basesystem 15 SP5all versions · fixed in 4.6.1-150300.3.3.1
  • squashfsSUSE:Linux Enterprise Module for Basesystem 15 SP4all versions · fixed in 4.6.1-150300.3.3.1

51 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-40153 Red Hat Product Security26 products fixed · 2 known affected

    squashfs-tools: unvalidated filepaths allow writing outside of destination

    squashfs-tools as a component of Red Hat Enterprise Linux 6 · squashfs-tools as a component of Red Hat Enterprise Linux 7

  • RHSA-2024:3139 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: squashfs-tools security update

  • RHSA-2024:2396 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: squashfs-tools security update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2024:3139 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. No fix planned, says the vendor Red Hat Product Security CVE-2021-40153 · 1 productOut of support scope
  3. No fix planned, says the vendor Red Hat Product Security CVE-2021-40153 · 1 productWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Published
2021-08-27
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-98f5-57cr-27p7

Frequently asked questions

What is CVE-2021-40153?

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.

Is CVE-2021-40153 actively exploited?

Active exploitation of CVE-2021-40153 has not been confirmed. Its EPSS score was 2.5% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-40153?

CVE-2021-40153 has a CVSS v3 base score of 8.1 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H.

Running squashfs-tools? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record