Advisory

UBUNTU-CVE-2021-40153

Also known as: CVE-2021-40153

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Dates

Published
2021-08-27 15:15 UTC
Modified
2026-02-05 07:37 UTC

Affected packages and fixes

squashfs-tools

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 1:4.3-6ubuntu0.18.04.3 (ecosystem)

Fixed versions

1:4.3-6ubuntu0.18.04.3

Fix

  • Fixed version 1:4.3-6ubuntu0.18.04.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

squashfs-tools

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1:4.4-1ubuntu0.1 (ecosystem)

Fixed versions

1:4.4-1ubuntu0.1

Fix

  • Fixed version 1:4.4-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences