CVE-2021-40153
Publication date 27 August 2021
Last updated 24 July 2024
Ubuntu priority
Cvss 3 Severity Score
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.
Status
Package | Ubuntu Release | Status |
---|---|---|
squashfs-tools | 22.04 LTS jammy |
Fixed 1:4.4-2ubuntu1
|
20.04 LTS focal |
Fixed 1:4.4-1ubuntu0.1
|
|
18.04 LTS bionic |
Fixed 1:4.3-6ubuntu0.18.04.3
|
|
16.04 LTS xenial |
Fixed 1:4.3-3ubuntu2.16.04.3+esm1
|
|
14.04 LTS trusty | Not in release |
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu ProSeverity score breakdown
Parameter | Value |
---|---|
Base score | 8.1 · High |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | Required |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
References
Related Ubuntu Security Notices (USN)
- USN-5057-1
- Squashfs-Tools vulnerability
- 31 August 2021
- USN-5078-2
- Squashfs-Tools vulnerabilities
- 15 September 2021
Other references
- https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790
- https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646 (4.5)
- https://github.com/plougher/squashfs-tools/issues/72
- https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646
- https://www.cve.org/CVERecord?id=CVE-2021-40153