{"id":"ALPINE-CVE-2023-1999","details":"There exists a use after free/double free in libwebp. An attacker can use the ApplyFiltersAndEncode() function and loop through to free best.bw and assign best = trial pointer. The second loop will then return 0 because of an Out of memory error in VP8 encoder, the pointer is still assigned to trial and the AddressSanitizer will attempt a double free.","modified":"2026-03-09T01:25:24.142968Z","published":"2023-06-20T12:15:09.600Z","upstream":["CVE-2023-1999"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2023-1999"}],"affected":[{"package":{"name":"libwebp","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r1"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.3-r1"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.4-r2"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0","1.2.4-r0","1.2.4-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-r2"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.3.0-r0","1.3.0-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-r3"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.3.0-r0","1.3.0-r1","1.3.0-r2"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-r3"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.3.0-r0","1.3.0-r1","1.3.0-r2"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-r3"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.3.0-r0","1.3.0-r1","1.3.0-r2"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-r3"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.3.0-r0","1.3.0-r1","1.3.0-r2"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}},{"package":{"name":"libwebp","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/libwebp?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-r3"}]}],"versions":["0.1.2-r0","0.1.2-r1","0.1.3-r0","0.1.99-r0","0.2.0-r0","0.2.1-r0","0.3.0-r0","0.3.1-r0","0.3.1-r1","0.4.0-r1","0.4.1-r0","0.4.2-r0","0.4.3-r0","0.4.4-r0","0.5.0-r0","0.5.1-r0","0.5.2-r0","0.6.0-r0","0.6.0-r1","0.6.1-r0","1.0.0-r0","1.0.1-r0","1.0.2-r0","1.0.3-r0","1.1.0-r0","1.2.0-r0","1.2.0-r1","1.2.0-r2","1.2.1-r0","1.2.2-r0","1.2.3-r0","1.2.4-r0","1.2.4-r1","1.3.0-r0","1.3.0-r1","1.3.0-r2"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}