Vulnerability · Published Mar 4, 2021 · Assigned by facebook
CVE-2021-24031
Medium 5.5
In plain English
A medium-severity security flaw in Zstandard from Facebook. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.5%top 59.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | zstd | 1.4.1-r0 | ALPINE-CVE-2021-24031 |
| Alpine:v3.21 | zstd | 1.4.1-r0 | ALPINE-CVE-2021-24031 |
| Alpine:v3.22 | zstd | 1.4.1-r0 | ALPINE-CVE-2021-24031 |
| Alpine:v3.23 | zstd | 1.4.1-r0 | ALPINE-CVE-2021-24031 |
| Alpine:v3.24 | zstd | 1.4.1-r0 | ALPINE-CVE-2021-24031 |
| Debian:12 | libzstd | 1.4.8+dfsg-1 | DEBIAN-CVE-2021-24031 |
| Debian:13 | libzstd | 1.4.8+dfsg-1 | DEBIAN-CVE-2021-24031 |
| Debian:14 | libzstd | 1.4.8+dfsg-1 | DEBIAN-CVE-2021-24031 |
Affected products (as reported)
Weakness: CWE-277
References
- https://github.com/facebook/zstd/issues/1630 x_refsource_MISC
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981404 x_refsource_MISC
- https://www.facebook.com/security/advisories/cve-2021-24031 x_refsource_MISC