cve.bz

CVE-2021-24031 facebook zstandard: Incorrect Default Permissions

5.5 mediumExploit referenceEPSS 0.5%Fix available

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

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

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
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-24031 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-24031?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-24031?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-24031 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 Zstandardbefore 1.4.1

Fixed in

ProductFixed in
Facebook Zstandard1.4.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libzstd1.1.2-1+deb9u1DLA-2573-1
Debian10libzstd1.3.8+dfsg-3+deb10u1DSA-4850-1
Debian12, 13, 14libzstd1.4.8+dfsg-1DEBIAN-CVE-2021-24031
Ubuntu18.04:LTSlibzstd1.3.3+dfsg-2ubuntu1.2UBUNTU-CVE-2021-24031 USN-4760-1
Ubuntu20.04:LTSlibzstd1.4.4+dfsg-3ubuntu0.1UBUNTU-CVE-2021-24031 USN-4760-1
UbuntuPro:16.04:LTSlibzstd1.3.1+dfsg-1~ubuntu0.16.04.1+esm3UBUNTU-CVE-2021-24031 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.14, v3.15, v3.16 and 8 morezstd1.4.1-r0ALPINE-CVE-2021-24031

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. 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.

ProductPackageStateAdvisory
Red Hat Ceph Storage 3cephFix deferred
Red Hat Enterprise Linux 8zstdNot affected
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-24031.

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