cve.bz

CVE-2021-24032 facebook zstandard: Incorrect Default Permissions

4.7 mediumEPSS 0.3%Fix available

Medium (4.7) in facebook zstandard. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 29th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-276 Incorrect Default Permissions
CWE-277 Insecure Inherited Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-24032 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-24032?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-24032?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-24032 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Facebook Zstandardfrom 1.4.1 before unspecified

Fixed in

ProductFixed in
Facebook Zstandard1.4.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libzstd1.3.8+dfsg-3+deb10u2DSA-4859-1
Debian12, 13, 14libzstd1.4.8+dfsg-2DEBIAN-CVE-2021-24032
Ubuntu18.04:LTSlibzstd1.3.3+dfsg-2ubuntu1.2UBUNTU-CVE-2021-24032 USN-4760-1
Ubuntu20.04:LTSlibzstd1.4.4+dfsg-3ubuntu0.1UBUNTU-CVE-2021-24032 USN-4760-1
UbuntuPro:16.04:LTSlibzstd1.3.1+dfsg-1~ubuntu0.16.04.1+esm3UBUNTU-CVE-2021-24032 USN-5720-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2zstd1.4.4-1.6.1SUSE-SU-2021:0948-1
openSUSELeap 15.2zstd1.4.4-lp152.2.3.1openSUSE-SU-2021:0481-1
Alpinev3.11, v3.12, v3.13 and 11 morezstd1.4.9-r0ALPINE-CVE-2021-24032
Azure Linux2ceph16.2.10-3AZL-39352
Azure Linux3ceph18.2.2-5AZL-38944

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

In OpenShift Container Platform (OCP) the zstd package was delivered in OCP 4.3 which is already end of life.

This vulnerability can be considered low severity rather than moderate due to the fact that the elevated file permissions are only temporary and only exist during the compression or decompression process. Once the operation completes, the file permissions revert to their intended state, mirroring those of the input file. The risk is further minimized by the fact that the exposure window is brief, and the elevated permissions are not persistent. Additionally, the issue only arises during the processing of files, and only those with larger sizes or more involved operations would be at risk.

ProductPackageStateAdvisory
Red Hat AMQ Streams 2.7.0Fixed 2024-05-30RHSA-2024:3527
Red Hat Advanced Cluster Security 3roxAffected
Red Hat Ceph Storage 3cephFix deferred
Red Hat Ceph Storage 7libzstdAffected
Red Hat Enterprise Linux 8zstdFix deferred
Red Hat Enterprise Linux 9zstdNot affected
Red Hat OpenShift Container Platform 4zstdOut of support scope
Red Hat OpenStack Platform 16.1zstdNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-24032.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON