---
title: "CVE-2021-40153"
canonical_url: "https://pkgseek.com/security/CVE-2021-40153"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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.

CVE-2021-40153 严重级别为 HIGH (8.1)，共索引 5 条受影响软件包构建记录，涉及 4 个发行版。

- **级别 / 评分**: HIGH (8.1)
- **受影响构建数**: 5
- **涉及发行版**: 4
- **已标明修复版本发行版**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | squashfs-tools | 4.3-20.1.al8 | 4.3-20.1.0.3.al8 |
| Oracle Linux | 8 | squashfs-tools | 4.3-20.el8 | 4.3-21.el8 |
| Oracle Linux | 9 | squashfs-tools | 4.4-8.git1.el9 | 4.4-10.git1.el9 |
| Red Hat Enterprise Linux | 9.8 | squashfs-tools | 4.4-8.git1.el9 | 4.4-10.git1.el9 |
| Ubuntu | focal | squashfs-tools | 1:4.4-1 | 1:4.4-1ubuntu0.1 |
