5.5

CVE-2021-24031: facebook zstandard Insecure Inherited Permissions

CVSS: 5.5v3.1MediumModified
AliasesALPINE-CVE-2021-24031MGASA-2021-0322UBUNTU-CVE-2021-24031
Published 04-03-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-24031 is a medium (CVSS 5.5) Insecure Inherited Permissions vulnerability in facebook zstandard. EPSS estimates a 0.46% chance of exploitation in the next 30 days, higher than 38.9% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
32/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.46%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 04-03-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.46%

Chance of exploitation in the next 30 days

Percentile

39%

Versus all other CVEs

30-day change

+0.03 pp

From 0.43% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.46%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Zstd

    Maturity: poc

  • referenceUnverified

    Exploit Reference (bugs.debian.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Alpine1 product
  • zstd< 1.4.1-r0
Debian1 product
  • libzstd< 1.4.8+dfsg-1 | < 1.3.8+dfsg-3+deb10u1 | < 1.1.2-1+deb9u1
Facebook1 product
Mageia1 product
  • zstd< 1.4.0-1.1.mga7
Ubuntu1 product
  • libzstd< 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 | < 1.3.3+dfsg-2ubuntu1.2 | < 1.4.4+dfsg-3ubuntu0.1

5 vendors · 5 products

References

11 links
Show all 11 references