CVEfocus › CVE database › CVE-2021-24031

CVE-2021-24031

CVSS 5.5 MediumEPSS 0.5% (higher than 32% of CVEs)Published 2021-03-04Updated 2024-08-03Assigner: facebook

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.

CWE-277

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
1Fix pending
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libzstdNot affected
vulnerable_code_not_present
Ubuntu 22.04libzstdNot affected
vulnerable_code_not_present
Ubuntu 20.04libzstdFixed1.4.4+dfsg-3ubuntu0.1UBUNTU-CVE-2021-24031
Ubuntu 18.04libzstdFixed1.3.3+dfsg-2ubuntu1.2UBUNTU-CVE-2021-24031
Ubuntu 16.04libzstdFix pending1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 (Ubuntu Pro)UBUNTU-CVE-2021-24031
Debian 14libzstdFixed1.4.8+dfsg-1DEBIAN-CVE-2021-24031
Debian 13libzstdFixed1.4.8+dfsg-1DEBIAN-CVE-2021-24031
Debian 12libzstdFixed1.4.8+dfsg-1DEBIAN-CVE-2021-24031
Red Hat Enterprise Linux 9libzstdNot affected
Red Hat Enterprise Linux 9libzstd-develNot affected
Red Hat Enterprise Linux 9zstdNot affected
Red Hat Enterprise Linux 8libzstdNot affected
Red Hat Enterprise Linux 8libzstd-develNot affected
Red Hat Enterprise Linux 8zstdNot affected
Alpine Linux 3.24zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.23zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.22zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.21zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.20zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.19zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.18zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.17zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.16zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.15zstdFixed1.4.1-r0ALPINE-CVE-2021-24031
Alpine Linux 3.14zstdFixed1.4.1-r0ALPINE-CVE-2021-24031

What the vendor says

As published in the CVE record by facebook, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.