SecurityContext

CVE-2021-24031: Zstandard - Insecure File Permissions

  • Cve: CVE-2021-24031
  • Name: Zstandard - Insecure File Permissions
  • 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.
  • Impact: Unintended parties may read or modify output files, leading to information disclosure or data tampering.
  • Remediation: Update to version 1.4.1 or later to ensure correct permissions are set during file creation.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00465
  • Epss percentile: 0.41093
  • Assignee: [email protected]
  • Published at: 2021-03-04T21:15:12Z
  • Age in days: 2091
  • Modified at: 2026-06-17T03:39:11Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-24031
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-277Insecure Inherited Permissions
CWE-276Incorrect Default Permissions

Public exploits

UrlSourceAdded date
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981404nvd2021-03-04
https://github.com/facebook/zstd/issues/1630nvd2021-03-04

References

Same in every row:

  • Source: nvd
UrlTags
https://www.facebook.com/security/advisories/cve-2021-24031Vendor Advisory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981404Exploit, Issue Tracking, Mailing List, Third Party Advisory
https://github.com/facebook/zstd/issues/1630Exploit, Issue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
facebook:zstandard< 1.4.1nonvd/v1/products/facebook/zstandard

Projects

RepositoryLink kindsIndexedUrl
facebook/zstdissuesyes/v1/repositories/facebook/zstd

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2021-03-04
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts