Incorrect Default Permissions Affecting zstd package, versions <1.4.1-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.05% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Default Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALPINE321-ZSTD-8487435
  • published6 Dec 2024
  • disclosed4 Mar 2021

Introduced: 4 Mar 2021

CVE-2021-24031  (opens in a new tab)
CWE-276  (opens in a new tab)

How to fix?

Upgrade Alpine:3.21 zstd to version 1.4.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream zstd package and not the zstd package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

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 Scores

version 3.1