{"id":"ALPINE-CVE-2021-24031","details":"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.","modified":"2025-12-03T22:43:11.083559Z","published":"2021-03-04T21:15:12.743Z","upstream":["CVE-2021-24031"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-24031"}],"affected":[{"package":{"name":"zstd","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}},{"package":{"name":"zstd","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/zstd?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-r0"}]}],"versions":["1.1.1-r0","1.1.3-r0","1.1.4-r0","1.2.0-r0","1.3.0-r0","1.3.1-r0","1.3.2-r0","1.3.3-r0","1.3.3-r1","1.3.4-r0","1.3.5-r0","1.3.7-r0","1.3.7-r1","1.3.8-r0","1.4.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-24031.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}