CVE-2021-24032
Beginning in v1.4.1 and prior to v1.4.9, due to an incomplete fix for CVE-2021-24031, the...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
4.7
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.
- Record
CVE-2021-24032- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 1.9 Low
AV:L/AC:M/Au:N/C:P/I:N/A:N - Weakness
- CWE-277, CWE-276
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-24032- Weakness
- CWE-277
- Updated
- 2026-11-02
EUVDEUVD-2021-10952 No score
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.
- Record
EUVD-2021-10952- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-ffqj-7pgc-cmj5
4.7
Beginning in v1.4.1 and prior to v1.4.9, due to an incomplete fix for CVE-2021-24031, the...
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.
- Record
GHSA-ffqj-7pgc-cmj5- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-276, CWE-277
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-24032
4.7
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.
- Record
ALPINE-CVE-2021-24032- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVAZL-38944
4.7
CVE-2021-24032 affecting package ceph for versions less than 18.2.2-5
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.
- Record
AZL-38944- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-05
Show 12 moreShow less
OSVAZL-39352
4.7
CVE-2021-24032 affecting package ceph for versions less than 16.2.10-3
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.
- Record
AZL-39352- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVBELL-CVE-2021-24032
4.7
CVE-2021-24032 does not affect BellSoft software
- Record
BELL-CVE-2021-24032- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSV
4.7
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.
- Record
CVE-2021-24032- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-24032
4.7
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.
- Record
DEBIAN-CVE-2021-24032- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVJLSEC-2026-121
4.7
Beginning in v1.4.1 and prior to v1.4.9, due to an incomplete fix for CVE-2021-24031, the Zstandard...
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.
- Record
JLSEC-2026-121- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 1.9 Low
AV:L/AC:M/Au:N/C:P/I:N/A:N - Updated
- 2026-11-02
OSVOESA-2021-1094
9.1
zstd security update
Zstd is a fast lossless compression algorithm. It's backed by a very fast entropy stage, provided by Huff0 and FSE library. It's a real-time compression scenario for zlib levels and has a better compression ratio.
Security Fix(es):
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.(CVE-2021-24032)
- Record
OESA-2021-1094- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-24032
4.7
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.
- Record
UBUNTU-CVE-2021-24032- CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVMGASA-2021-0323 No score
Updated zstd packages fix a security vulnerability
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 (CVE-2021-24032).
- Record
MGASA-2021-0323- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0481-1 No score
Security update for zstd
This update for zstd fixes the following issues:
- CVE-2021-24031: Added read permissions to files while being compressed or uncompressed (bsc#1183371).
- CVE-2021-24032: Fixed a race condition which could have allowed an attacker to access world-readable destination file (bsc#1183370).
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2021:0481-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:0948-1 No score
Security update for zstd
This update for zstd fixes the following issues:
- CVE-2021-24031: Added read permissions to files while being compressed or uncompressed (bsc#1183371).
- CVE-2021-24032: Fixed a race condition which could have allowed an attacker to access world-readable destination file (bsc#1183370).
- Record
SUSE-SU-2021:0948-1- Updated
- 2026-11-02
OSVUSN-4760-1 No score
libzstd vulnerabilities
It was discovered that libzstd incorrectly handled file permissions. A local attacker could possibly use this issue to access certain files, contrary to expectations.
- Record
USN-4760-1- Updated
- 2026-11-02
OSVUSN-5720-1 No score
libzstd vulnerabilities
It was discovered that Zstandard was not properly managing file permissions when generating output files. A local attacker could possibly use this issue to cause a race condition and gain unauthorized access to sensitive data.
- Record
USN-5720-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
zstdAlpine:v3.11 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.12 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.13 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.14 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.15 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.16 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.17 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.18 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.19 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.20 |
before 1.4.9-r0 | 1.4.9-r0 |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
zstdAlpine:v3.21 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.22 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.23 |
before 1.4.9-r0 | 1.4.9-r0 |
zstdAlpine:v3.24 |
before 1.4.9-r0 | 1.4.9-r0 |
cephAzure Linux:3 |
before 18.2.2-5 | 18.2.2-5 |
cephAzure Linux:2 |
before 16.2.10-3 | 16.2.10-3 |
libzstdDebian:12 |
before 1.4.8+dfsg-2 | 1.4.8+dfsg-2 |
libzstdDebian:13 |
before 1.4.8+dfsg-2 | 1.4.8+dfsg-2 |
libzstdDebian:14 |
before 1.4.8+dfsg-2 | 1.4.8+dfsg-2 |
libzstdDebian:10 |
before 1.3.8+dfsg-3+deb10u2, plus listed versions 1.3.8+dfsg-31.3.8+dfsg-3+deb10u1 |
1.3.8+dfsg-3+deb10u2 |
Zstd_jllJulia |
before 1.5.0+0 | 1.5.0+0 |
zstdMageia:8 |
before 1.4.8-1.1.mga8 | 1.4.8-1.1.mga8 |
zstdopenEuler:20.03-LTS |
before 1.4.5-1.oe1 | 1.4.5-1.oe1 |
zstdopenEuler:20.03-LTS-SP1 |
before 1.4.5-1.oe1 | 1.4.5-1.oe1 |
zstdSUSE:Linux Enterprise Module for Basesystem 15 SP2 From an advisory covering 2 CVEs |
before 1.4.4-1.6.1 | 1.4.4-1.6.1 |
zstdSUSE:Linux Enterprise Micro 5.0 From an advisory covering 2 CVEs |
before 1.4.4-1.6.1 | 1.4.4-1.6.1 |
libzstdUbuntu:Pro:16.04:LTS |
before 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3, plus listed versions 0.4.5-10.5.1-11.3.1+dfsg-1~ubuntu0.16.04.11.3.1+dfsg-1~ubuntu0.16.04.1+esm11.3.1+dfsg-1~ubuntu0.16.04.1+esm2 |
1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 |
libzstdUbuntu:18.04:LTS |
before 1.3.3+dfsg-2ubuntu1.2, plus listed versions 1.3.1+dfsg-11.3.2+dfsg-11.3.2+dfsg2-11.3.3+dfsg-11.3.3+dfsg-1ubuntu11.3.3+dfsg-2ubuntu11.3.3+dfsg-2ubuntu1.1 |
1.3.3+dfsg-2ubuntu1.2 |
libzstdUbuntu:20.04:LTS |
before 1.4.4+dfsg-3ubuntu0.1, plus listed versions 1.4.3+dfsg-11.4.4+dfsg-11.4.4+dfsg-3 |
1.4.4+dfsg-3ubuntu0.1 |
libzstdUbuntu:18.04:LTS From an advisory covering 2 CVEs |
before 1.3.3+dfsg-2ubuntu1.2, plus listed versions 1.3.1+dfsg-11.3.2+dfsg-11.3.2+dfsg2-11.3.3+dfsg-11.3.3+dfsg-1ubuntu11.3.3+dfsg-2ubuntu11.3.3+dfsg-2ubuntu1.1 |
1.3.3+dfsg-2ubuntu1.2 |
libzstdUbuntu:20.04:LTS From an advisory covering 2 CVEs |
before 1.4.4+dfsg-3ubuntu0.1, plus listed versions 1.4.3+dfsg-11.4.4+dfsg-11.4.4+dfsg-3 |
1.4.4+dfsg-3ubuntu0.1 |
libzstdUbuntu:Pro:16.04:LTS From an advisory covering 2 CVEs |
before 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3, plus listed versions 0.4.5-10.5.1-11.3.1+dfsg-1~ubuntu0.16.04.11.3.1+dfsg-1~ubuntu0.16.04.1+esm11.3.1+dfsg-1~ubuntu0.16.04.1+esm2 |
1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 |
zstdopenSUSE:Leap 15.2 From an advisory covering 2 CVEs |
before 1.4.4-lp152.2.3.1 | 1.4.4-lp152.2.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-24032 is a medium vulnerability (CVSS 4.7) in Facebook Zstandard, published February 20, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.35%, the 28th percentile. Fixed in zstd 1.4.9-r0.
References
github.com/facebook/zstd/issues/2491
bugs.debian.org/cgi-bin/bugreport.cgi?bug=982519
facebook.com/security/advisories/cve-2021-24032
nvd.nist.gov/vuln/detail/CVE-2021-24032
github.com/advisories/GHSA-ffqj-7pgc-cmj5
security.alpinelinux.org/vuln/CVE-2021-24032
Show 16 moreShow less
docs.bell-sw.com/security/cves/CVE-2021-24032
security-tracker.debian.org/tracker/CVE-2021-24032
advisories.mageia.org/MGASA-2021-0323.html
bugs.mageia.org/show_bug.cgi?id=28444
ubuntu.com/security/notices/USN-4760-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1094
suse.com/support/update/announcement/2021/suse-su-20210948-1
bugzilla.suse.com/1183370
bugzilla.suse.com/1183371
suse.com/security/cve/CVE-2021-24031
suse.com/security/cve/CVE-2021-24032
ubuntu.com/security/CVE-2021-24032
ubuntu.com/security/notices/USN-5720-1
cve.org/CVERecord?id=CVE-2021-24032
ubuntu.com/security/CVE-2021-24031
lists.opensuse.org/archives/list/[email protected]/thread/HYCURYHE4SZBA5XWHE6FDNCJ3JJDZS5S