{"id":"ALPINE-CVE-2021-20254","details":"A flaw was found in samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause the calling code to return those values into the process token that stores the group membership for a user. The highest threat from this vulnerability is to data confidentiality and integrity.","modified":"2026-08-27T22:18:01.444314723Z","published":"2021-05-05T14:15:07.883Z","upstream":["CVE-2021-20254"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-20254"}],"affected":[{"package":{"name":"samba","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.12.15-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.13.8-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}},{"package":{"name":"samba","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/samba?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"4.14.4-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20254.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}