# CVE-2021-24031: In the Zstandard command-line utility prior to v1.4.1, output files were created with default permissions.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-03-04T20:15:21.000Z
- Modified: 2026-06-17T03:39:11.537Z
- Weaknesses: CWE-276, CWE-277
- Assigned by: facebook

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

(As written by CVE List.)

## Affected

- Facebook Zstandard: from unspecified before 1.4.1; before 1.4.1 (not affected: from 1.4.1 before unspecified)

## Every score

- NVD: 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`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/facebook/zstd/issues/1630> (exploit, issue-tracking, third-party-advisory)
- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981404> (exploit, issue-tracking, mailing-list, third-party-advisory)
- <https://www.facebook.com/security/advisories/cve-2021-24031> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-24031](https://www.cve.org/CVERecord?id=CVE-2021-24031), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24031](https://nvd.nist.gov/vuln/detail/CVE-2021-24031), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24031 · Whole record: https://cve.day/CVE-2021-24031.json · Rebuilt by cve.day 2026-11-25T22:58:00.143Z
