CVE-2021-24031
publishedzstd: adds read permissions to files while being compressed or uncompressed
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| — | Zstandard1.4.1 to < unspecified (unaffected · custom) · unspecified to < 1.4.1 (affected · custom) | Version-specific | Not stated | ||
| Alpine Linux | edge | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Debian | buster | libzstd | Advisory build | 1.3.8+dfsg-3+deb10u1 | DSA-4850-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd-develaarch64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| Ubuntu | bionic | libzstd | Advisory build | 1.3.3+dfsg-2ubuntu1.2 | USN-4760-1 |
| Alpine Linux | v3.14 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.15 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.16 | zstd | Fixed | 1.4.1-r0 | Package fix record |
Show 40 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.17 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.18 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.19 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.20 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.21 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.22 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.23 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Alpine Linux | v3.24 | zstd | Fixed | 1.4.1-r0 | Package fix record |
| Debian | stretch | libzstd | Advisory build | 1.1.2-1+deb9u1 | DLA-2573-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd-develppc64le | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd-devels390x | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd-develx86_64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd1aarch64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd1ppc64le | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd1s390x | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd1x86_64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | libzstd1-32bitx86_64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | zstdaarch64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | zstdppc64le | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | zstds390x | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-15-SP2 | zstdx86_64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-5 | libzstd1aarch64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | SLE-5 | libzstd1x86_64 | Advisory build | 1.4.4-1.6.1 | SUSE-SU-2021:0948-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libzstd-develi586 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libzstd-develx86_64 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libzstd-devel-statici586 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libzstd-devel-staticx86_64 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libzstd1i586 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libzstd1x86_64 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libzstd1-32bitx86_64 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | zstdi586 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | zstdx86_64 | Advisory build | 1.4.4-lp152.2.3.1 | OPENSUSE-SU-2021:0481-1 |
| Ubuntu | bionic | libzstd1 | Advisory build | 1.3.3+dfsg-2ubuntu1.2 | USN-4760-1 |
| Ubuntu | bionic | zstd | Advisory build | 1.3.3+dfsg-2ubuntu1.2 | USN-4760-1 |
| Ubuntu | focal | libzstd | Advisory build | 1.4.4+dfsg-3ubuntu0.1 | USN-4760-1 |
| Ubuntu | focal | libzstd1 | Advisory build | 1.4.4+dfsg-3ubuntu0.1 | USN-4760-1 |
| Ubuntu | focal | zstd | Advisory build | 1.4.4+dfsg-3ubuntu0.1 | USN-4760-1 |
| Ubuntu | xenial | libzstd | Advisory build | 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 | USN-5720-1 |
| Ubuntu | xenial | libzstd1 | Advisory build | 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 | USN-5720-1 |
| Ubuntu | xenial | zstd | Advisory build | 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 | USN-5720-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Zstandard | 1.4.1 to < unspecified (unaffected · custom)unspecified to < 1.4.1 (affected · custom) | facebook · cna |
Weaknesses
1- CWE-277 Insecure Inherited Permissions (CWE-277)
References
3Provider assertions
2facebook · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7ff3bf3d6b08946bba7e48d79a1138ba489a8c71e1583af7331d4945138f032b
- Ingested
- 23 Sep 2026, 07:52:58 UTC
- Source record
- Official CVE record