CVE-2021-41072

Source
https://cve.org/CVERecord?id=CVE-2021-41072
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41072.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41072
Downstream
Related
Published
2021-09-14T01:15:07.747Z
Modified
2026-07-09T05:45:02.685462Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H CVSS Calculator
Summary
[none]
Details

squashfs_opendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153. A squashfs filesystem that has been crafted to include a symbolic link and then contents under the same filename in a filesystem can cause unsquashfs to first create the symbolic link pointing outside the expected directory, and then the subsequent write operation will cause the unsquashfs process to write through the symbolic link elsewhere in the filesystem.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "CPE_STRING",
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
                {
                    "introduced": "9.0"
                },
                {
                    "last_affected": "9.0"
                },
                {
                    "introduced": "10.0"
                },
                {
                    "last_affected": "10.0"
                },
                {
                    "introduced": "11.0"
                },
                {
                    "last_affected": "11.0"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/plougher/squashfs-tools

Affected ranges

Type
GIT
Repo
https://github.com/plougher/squashfs-tools
Events
Database specific
{
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "4.5"
        },
        {
            "last_affected": "4.5"
        }
    ],
    "cpe": "cpe:2.3:a:squashfs-tools_project:squashfs-tools:4.5:*:*:*:*:*:*:*"
}

Affected versions

4.*
4.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41072.json"
vanir_signatures
[
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "line_hashes": [
                "13826501275751200352062856063484710912",
                "310321498175082041215183790365799830598",
                "222252199053251366417172446049972134779"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "squashfs-tools/unsquash-4.c"
        },
        "id": "CVE-2021-41072-17bef277"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "function_hash": "18901525040218552686384788208234690139",
            "length": 2732.0
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "squashfs_opendir",
            "file": "squashfs-tools/unsquash-2.c"
        },
        "id": "CVE-2021-41072-17d236ac"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "function_hash": "54792938322389362071123182180987984409",
            "length": 1204.0
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "read_super_2",
            "file": "squashfs-tools/unsquash-2.c"
        },
        "id": "CVE-2021-41072-517a38af"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "function_hash": "18901525040218552686384788208234690139",
            "length": 2732.0
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "squashfs_opendir",
            "file": "squashfs-tools/unsquash-1.c"
        },
        "id": "CVE-2021-41072-8756ee07"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "line_hashes": [
                "89582843057714310302560616203867031271",
                "49499559178388147018567964199199003077"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "squashfs-tools/unsquashfs.h"
        },
        "id": "CVE-2021-41072-930e8cbd"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "function_hash": "310221983440334615105753322885496648658",
            "length": 2736.0
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "squashfs_opendir",
            "file": "squashfs-tools/unsquash-3.c"
        },
        "id": "CVE-2021-41072-a593c95f"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "line_hashes": [
                "321819792665477290116542811770824633115",
                "153109692933111748050391633369134751289",
                "200445461191816545489245548579996642577",
                "109435949105249211745989750370743912367",
                "13826501275751200352062856063484710912",
                "310321498175082041215183790365799830598",
                "222252199053251366417172446049972134779",
                "48309106085847685141102099689057574146",
                "301385753643948902204006603759959075192",
                "126113801197783751144936314844357774461",
                "184633766433689322390316538862612286887"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "squashfs-tools/unsquash-2.c"
        },
        "id": "CVE-2021-41072-bde9ce70"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "function_hash": "95133666285201796399228902473090162087",
            "length": 2502.0
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "squashfs_opendir",
            "file": "squashfs-tools/unsquash-4.c"
        },
        "id": "CVE-2021-41072-c792fca3"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "line_hashes": [
                "13826501275751200352062856063484710912",
                "310321498175082041215183790365799830598",
                "222252199053251366417172446049972134779"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "squashfs-tools/unsquash-3.c"
        },
        "id": "CVE-2021-41072-e1b69ee7"
    },
    {
        "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd",
        "digest": {
            "line_hashes": [
                "13826501275751200352062856063484710912",
                "310321498175082041215183790365799830598",
                "222252199053251366417172446049972134779"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "squashfs-tools/unsquash-1.c"
        },
        "id": "CVE-2021-41072-e8094c28"
    }
]
vanir_signatures_modified
"2026-07-09T05:45:02Z"