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

EcosystemPackageFixed inAdvisory
Alpine:v3.20zstd1.4.1-r0ALPINE-CVE-2021-24031
Alpine:v3.21zstd1.4.1-r0ALPINE-CVE-2021-24031
Alpine:v3.22zstd1.4.1-r0ALPINE-CVE-2021-24031
Alpine:v3.23zstd1.4.1-r0ALPINE-CVE-2021-24031
Alpine:v3.24zstd1.4.1-r0ALPINE-CVE-2021-24031
Debian:12libzstd1.4.8+dfsg-1DEBIAN-CVE-2021-24031
Debian:13libzstd1.4.8+dfsg-1DEBIAN-CVE-2021-24031
Debian:14libzstd1.4.8+dfsg-1DEBIAN-CVE-2021-24031

Affected products (as reported)

VendorProductVersions
Facebook Zstandard unspecified – before 1.4.1

Weakness: CWE-277

References