CVE-2021-24032
Beginning in v1.4.1 and prior to v1.4.9, due to an incomplete fix for CVE-2021-24031, the Zstandard command-line utility created output files with default permissions and restricted those permissions immediately afterwards. Output files could therefore momentarily be readable or writable to unintended parties.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have 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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | libzstd | Fixed | 1.4.4+dfsg-3ubuntu0.1 | UBUNTU-CVE-2021-24032 |
| Ubuntu 18.04 | libzstd | Fixed | 1.3.3+dfsg-2ubuntu1.2 | UBUNTU-CVE-2021-24032 |
| Ubuntu 16.04 | libzstd | Fix pending | 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2021-24032 |
| Debian 14 | libzstd | Fixed | 1.4.8+dfsg-2 | DEBIAN-CVE-2021-24032 |
| Debian 13 | libzstd | Fixed | 1.4.8+dfsg-2 | DEBIAN-CVE-2021-24032 |
| Debian 12 | libzstd | Fixed | 1.4.8+dfsg-2 | DEBIAN-CVE-2021-24032 |
| Red Hat Enterprise Linux 9 | libzstd | Not affected | ||
| Red Hat Enterprise Linux 9 | libzstd-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | zstd | Not affected | ||
| Red Hat Enterprise Linux 8 | libzstd | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libzstd-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | zstd | Fix pending Fix deferred | ||
| Alpine Linux 3.24 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.23 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.22 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.21 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.20 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.19 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.18 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.17 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.16 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.15 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.14 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.13 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.12 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
| Alpine Linux 3.11 | zstd | Fixed | 1.4.9-r0 | ALPINE-CVE-2021-24032 |
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.
- Facebook Zstandard: affected: 1.4.1 to before unspecified
References
- https://github.com/facebook/zstd/issues/2491
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982519
- https://www.facebook.com/security/advisories/cve-2021-24032
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.