CVE catalog

CVE-2021-24031

libzstd: CVE-2021-24031

[CVE catalog]

Severity
Medium · CVSS 6.2CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.46% · Oct 25, 2026

In the Zstandard command-line utility prior to v1.4.1, output files were created with default permissions. Correct file permissions (matching the input) would only be set at completion time. Output files could therefore be readable or writable to unintended parties.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibzstdsid1.5.7+dfsg-4fixed
Debianlibzstdforky1.5.7+dfsg-4fixed
Debianlibzstdtrixie1.5.7+dfsg-1fixed
Debianlibzstdbookworm1.5.4+dfsg2-5fixed
Alpinezstd3.141.4.1-r0fixed
Alpinezstd3.151.4.1-r0fixed
Alpinezstd3.161.4.1-r0fixed
Alpinezstd3.171.4.1-r0fixed
Alpinezstd3.181.4.1-r0fixed
Alpinezstd3.191.4.1-r0fixed
Alpinezstd3.201.4.1-r0fixed
Alpinezstd3.211.4.1-r0fixed
Alpinezstd3.221.4.1-r0fixed
Alpinezstd3.231.4.1-r0fixed
Alpinezstd3.241.4.1-r0fixed
Ubuntulibzstdpro0.4.5-1vulnerable
Ubuntulibzstdpro0.5.1-1vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm1vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm2vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm3fixed
Ubuntulibzstdpro0.4.5-1vulnerable
Ubuntulibzstdpro0.5.1-1vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm1vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm2vulnerable
Ubuntulibzstdpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm3fixed
Ubuntulibzstd18.041.3.1+dfsg-1vulnerable
Ubuntulibzstd18.041.3.2+dfsg-1vulnerable
Ubuntulibzstd18.041.3.2+dfsg2-1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-1ubuntu1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-2ubuntu1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-2ubuntu1.1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-2ubuntu1.2fixed
Ubuntulibzstd20.041.4.3+dfsg-1vulnerable
Ubuntulibzstd20.041.4.4+dfsg-1vulnerable
Ubuntulibzstd20.041.4.4+dfsg-3vulnerable
Ubuntulibzstd20.041.4.4+dfsg-3ubuntu0.1fixed
Ubuntulibzstd18.041.3.1+dfsg-1vulnerable
Ubuntulibzstd18.041.3.2+dfsg-1vulnerable
Ubuntulibzstd18.041.3.2+dfsg2-1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-1ubuntu1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-2ubuntu1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-2ubuntu1.1vulnerable
Ubuntulibzstd18.041.3.3+dfsg-2ubuntu1.2fixed
Ubuntulibzstd20.041.4.3+dfsg-1vulnerable
Ubuntulibzstd20.041.4.4+dfsg-1vulnerable
Ubuntulibzstd20.041.4.4+dfsg-3vulnerable
Ubuntulibzstd20.041.4.4+dfsg-3ubuntu0.1fixed
Susezstdlinux enterprise module for basesystem 15 sp21.4.4-1.6.1fixed
Susezstdlinux enterprise micro 5.01.4.4-1.6.1fixed
Opensusezstdleap 15.21.4.4-lp152.2.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibzstdsourcesid1.4.8+dfsg-1not yet assignedNot reported[981404]
Debianlibzstdsourceforky1.4.8+dfsg-1not yet assignedNot reported[981404]
Debianlibzstdsourcetrixie1.4.8+dfsg-1not yet assignedNot reported[981404]
Debianlibzstdsourcebookworm1.4.8+dfsg-1not yet assignedNot reported[981404]
Alpinezstdapk3.141.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.151.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.161.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.171.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.181.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.191.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.201.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.211.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.221.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.231.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Alpinezstdapk3.241.4.1-r0Not reportedALPINE-CVE-2021-24031Not reported
Ubuntulibzstddebpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm3Not reportedUSN-5720-1Not reported
Ubuntulibzstddebpro1.3.1+dfsg-1~ubuntu0.16.04.1+esm3Not reportedUBUNTU-CVE-2021-24031Not reported
Ubuntulibzstddeb18.041.3.3+dfsg-2ubuntu1.2Not reportedUBUNTU-CVE-2021-24031Not reported
Ubuntulibzstddeb20.041.4.4+dfsg-3ubuntu0.1Not reportedUBUNTU-CVE-2021-24031Not reported
Ubuntulibzstddeb18.041.3.3+dfsg-2ubuntu1.2Not reportedUSN-4760-1Not reported
Ubuntulibzstddeb20.041.4.4+dfsg-3ubuntu0.1Not reportedUSN-4760-1Not reported
Susezstdrpmlinux enterprise module for basesystem 15 sp21.4.4-1.6.1Not reportedSUSE-SU-2021:0948-1Not reported
Susezstdrpmlinux enterprise micro 5.01.4.4-1.6.1Not reportedSUSE-SU-2021:0948-1Not reported
Opensusezstdrpmleap 15.21.4.4-lp152.2.3.1Not reportedOPENSUSE-SU-2021:0481-1Not reported

[Debian bug #981404]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libzstd1]Fixed

    Source package: [libzstd]

    Details (2)
    • 1.5.4+dfsg2-5 · amd64 · bookworm

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · bookworm; dsa · libzstd · debian · 12

    • 1.5.4+dfsg2-5 · arm64 · bookworm

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · bookworm; dsa · libzstd · debian · 12

  • Source package: [libzstd]

    Details (2)
    • 1.5.4+dfsg2-5 · amd64 · bookworm

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · bookworm; dsa · libzstd · debian · 12

    • 1.5.4+dfsg2-5 · arm64 · bookworm

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · bookworm; dsa · libzstd · debian · 12

  • [zstd]Fixed

    Source package: [libzstd]

    Details (2)
    • 1.5.4+dfsg2-5 · amd64 · bookworm

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · bookworm; dsa · libzstd · debian · 12

    • 1.5.4+dfsg2-5 · arm64 · bookworm

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · bookworm; dsa · libzstd · debian · 12

[Debian 13 (Trixie)]

  • [libzstd1]Fixed

    Source package: [libzstd]

    Details (2)
    • 1.5.7+dfsg-1 · amd64 · trixie

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · 13

    • 1.5.7+dfsg-1 · arm64 · trixie

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · 13

  • Source package: [libzstd]

    Details (2)
    • 1.5.7+dfsg-1 · amd64 · trixie

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · 13

    • 1.5.7+dfsg-1 · arm64 · trixie

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · 13

  • [zstd]Fixed

    Source package: [libzstd]

    Details (2)
    • 1.5.7+dfsg-1 · amd64 · trixie

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · 13

    • 1.5.7+dfsg-1 · arm64 · trixie

      Fixed · Fixed: 1.4.8+dfsg-1

      dsa · libzstd · debian · 13

Observed:

References