CVE-2021-40153
Published: 27 August 2021
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.
Priority
Status
Package | Release | Status |
---|---|---|
squashfs-tools
Launchpad, Ubuntu, Debian |
bionic |
Released
(1:4.3-6ubuntu0.18.04.3)
|
focal |
Released
(1:4.4-1ubuntu0.1)
|
|
hirsute |
Released
(1:4.4-2ubuntu0.1)
|
|
impish |
Released
(1:4.4-2ubuntu1)
|
|
jammy |
Released
(1:4.4-2ubuntu1)
|
|
trusty |
Does not exist
|
|
upstream |
Needs triage
|
|
xenial |
Released
(1:4.3-3ubuntu2.16.04.3+esm1)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only) |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 8.1 |
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
- 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://ubuntu.com/security/notices/USN-5057-1
- https://ubuntu.com/security/notices/USN-5078-2
- https://www.cve.org/CVERecord?id=CVE-2021-40153
- NVD
- Launchpad
- Debian