# CVE-2021-24031

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-03-04 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-24031, MGASA-2021-0322, UBUNTU-CVE-2021-24031, DEBIAN-CVE-2021-24031, DLA-2573-1, DSA-4850-1
- Record: https://cvemate.com/vulnerability/CVE-2021-24031 · JSON: https://cvemate.com/vulnerability/CVE-2021-24031/json

## Description

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

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.471%, percentile 42.396%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github, reference)

## Affected

- alpine zstd (Alpine Linux): \< 1.4.1-r0
- debian libzstd (Debian): \< 1.4.8+dfsg-1 \| \< 1.1.2-1+deb9u1 \| \< 1.3.8+dfsg-3+deb10u1
- ubuntu libzstd (Ubuntu): \< 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 \| \< 1.3.3+dfsg-2ubuntu1.2 \| \< 1.4.4+dfsg-3ubuntu0.1
- facebook zstandard: ≥ unspecified, \< 1.4.1 \| \< 1.4.1
- mageia zstd (Mageia): \< 1.4.0-1.1.mga7

## References

- <https://github.com/facebook/zstd/issues/1630>
- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981404>
- <https://www.facebook.com/security/advisories/cve-2021-24031>
- <https://security.alpinelinux.org/vuln/CVE-2021-24031>
- <https://advisories.mageia.org/MGASA-2021-0322.html>
- <https://bugs.mageia.org/show_bug.cgi?id=28444>
- <https://ubuntu.com/security/notices/USN-4760-1>
- <https://ubuntu.com/security/CVE-2021-24031>
- <https://ubuntu.com/security/notices/USN-5720-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-24031>
- <https://security-tracker.debian.org/tracker/CVE-2021-24031>

---

Data as of 2026-12-05T09:58:48.472Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
