{"schemaVersion":3,"id":"CVE-2021-24032","aliases":["ALPINE-CVE-2021-24032","MGASA-2021-0323","UBUNTU-CVE-2021-24032","DEBIAN-CVE-2021-24032","DSA-4859-1"],"status":"published","duplicateOf":null,"title":null,"description":"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 restricted those permissions immediately afterwards. Output files could therefore momentarily be readable or writable to unintended parties.","dates":{"published":"2021-03-04T20:15:21.000Z","modified":"2026-10-08T21:03:24.633Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":1.9,"severity":"low","vector":"AV:L/AC:M/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00348,"percentile":0.27016,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.0020000000000000052,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00346},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00348,"percentile":0.27016}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00346,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00348,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00348,"percentile":0.27016}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-277","name":"Insecure Inherited Permissions","description":"A product defines a set of insecure permissions that are inherited by objects that are created by the program.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/277.html"},{"id":"CWE-276","name":"Incorrect Default Permissions","description":"During installation, installed file permissions are set to allow anyone to modify those files.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/276.html"}],"affected":[{"vendor":"alpine","product":"zstd","name":"zstd","label":"zstd","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/zstd","purlType":"apk","versions":[{"text":"< 1.4.9-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.9-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"libzstd","name":"libzstd","label":"libzstd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libzstd","purlType":"deb","versions":[{"text":"< 1.4.8+dfsg-2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.3.8+dfsg-3+deb10u2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.8+dfsg-2 | < 1.3.8+dfsg-3+deb10u2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libzstd","name":"libzstd","label":"libzstd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libzstd","purlType":"deb","versions":[{"text":"< 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.3.3+dfsg-2ubuntu1.2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.4.4+dfsg-3ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.1+dfsg-1~ubuntu0.16.04.1+esm3 | < 1.3.3+dfsg-2ubuntu1.2 | < 1.4.4+dfsg-3ubuntu0.1","eol":null,"hubHref":null},{"vendor":"facebook","product":"zstandard","name":"zstandard","label":"zstandard","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.4.1, < unspecified","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.4.1, < 1.4.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.4.1, < unspecified | ≥ 1.4.1, < 1.4.9","eol":null,"hubHref":"/vendor/facebook/zstandard"},{"vendor":"mageia","product":"zstd","name":"zstd","label":"zstd","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/zstd","purlType":"rpm","versions":[{"text":"< 1.4.8-1.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.8-1.1.mga8","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/facebook/zstd/issues/2491","label":"github.com/facebook/zstd/issues/2491","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982519","label":"bugs.debian.org/cgi-bin/bugreport.cgi?bug=982519","hostname":"bugs.debian.org","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://www.facebook.com/security/advisories/cve-2021-24032","label":"www.facebook.com/security/advisories/cve-2021-24032","hostname":"www.facebook.com","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-24032","label":"security.alpinelinux.org/vuln/CVE-2021-24032","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0323.html","label":"advisories.mageia.org/MGASA-2021-0323.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=28444","label":"bugs.mageia.org/show_bug.cgi?id=28444","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4760-1","label":"ubuntu.com/security/notices/USN-4760-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-24032","label":"ubuntu.com/security/CVE-2021-24032","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5720-1","label":"ubuntu.com/security/notices/USN-5720-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-24032","label":"www.cve.org/CVERecord?id=CVE-2021-24032","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-24032","label":"security-tracker.debian.org/tracker/CVE-2021-24032","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24032","label":"nvd.nist.gov/vuln/detail/CVE-2021-24032","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2021:0481-1","SUSE-SU-2021:0948-1","USN-4760-1","USN-5720-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0481-1","SUSE-SU-2021:0948-1","USN-4760-1","USN-5720-1"]},"timeline":[{"kind":"published","date":"2021-03-04T20:15:21.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T21:03:24.633Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":19,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:32:28.828Z","stale":false,"partial":false}}