{"id":"ALPINE-CVE-2021-3520","details":"There's a flaw in lz4. An attacker who submits a crafted file to an application linked with lz4 may be able to trigger an integer overflow, leading to calling of memmove() on a negative size argument, causing an out-of-bounds write and/or a crash. The greatest impact of this flaw is to availability, with some potential impact to confidentiality and integrity as well.","modified":"2026-08-27T22:18:01.627438237Z","published":"2021-06-02T13:15:13.170Z","upstream":["CVE-2021-3520"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-3520"}],"affected":[{"package":{"name":"lz4","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.2-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.2-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}},{"package":{"name":"lz4","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/lz4?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.3"},{"fixed":"1.9.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3520.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}