Medium severity · published Mar 4, 2021
CVE-2021-24031
In the Zstandard command-line utility prior to v1.4.1, output files were created with default permissions
5.5
CVSS
0.5%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ZS
Zstandard · Facebook
before 1.4.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-24031
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-24031
Exploit
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981404
Exploit
https://github.com/facebook/zstd/issues/1630
Vendor Advisory
https://www.facebook.com/security/advisories/cve-2021-24031
More from Zstandard
8.1
CVE-2019-11922
A race condition in the one-pass compression functions of Zstandard prior to version 1.3.8 could allow an attacker to write bytes out of bounds if an output buffer smaller than…
7.5
CVE-2022-4899
A vulnerability was found in zstd v1.4.10, where an attacker can supply empty string as an argument to the command line tool to cause buffer overrun
4.7
CVE-2021-24032
Beginning in v1.4.1 and prior to v1.4.9, due to an incomplete fix for CVE-2021-24031, the Zstandard command-line utility created output files with default permissions and…
