{"id":"ALPINE-CVE-2021-20233","details":"A flaw was found in grub2 in versions prior to 2.06. Setparam_prefix() in the menu rendering code performs a length calculation on the assumption that expressing a quoted single quote will require 3 characters, while it actually requires 4 characters which allows an attacker to corrupt memory by one byte for each quote in the input. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.","modified":"2025-12-03T22:47:28.894945Z","published":"2021-03-03T17:15:12.037Z","upstream":["CVE-2021-20233"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-20233"}],"affected":[{"package":{"name":"grub","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/grub?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.06-r0"}]}],"versions":["2.02-r0","2.02-r1","2.02-r10","2.02-r11","2.02-r12","2.02-r13","2.02-r14","2.02-r15","2.02-r16","2.02-r17","2.02-r18","2.02-r19","2.02-r2","2.02-r20","2.02-r3","2.02-r4","2.02-r5","2.02-r6","2.02-r7","2.02-r8","2.02-r9","2.02_beta3-r0","2.02_beta3-r1","2.02_beta3-r2","2.02_beta3-r3","2.02_beta3-r4","2.02_beta3-r5","2.02_beta3-r6","2.02_beta3-r7","2.04-r0","2.04-r1","2.04-r2","2.04-r3"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20233.json"}},{"package":{"name":"grub","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/grub?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.06-r0"}]}],"versions":["2.02-r0","2.02-r1","2.02-r10","2.02-r11","2.02-r12","2.02-r13","2.02-r14","2.02-r15","2.02-r16","2.02-r17","2.02-r18","2.02-r19","2.02-r2","2.02-r20","2.02-r3","2.02-r4","2.02-r5","2.02-r6","2.02-r7","2.02-r8","2.02-r9","2.02_beta3-r0","2.02_beta3-r1","2.02_beta3-r2","2.02_beta3-r3","2.02_beta3-r4","2.02_beta3-r5","2.02_beta3-r6","2.02_beta3-r7","2.04-r0","2.04-r1","2.04-r2","2.04-r3"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20233.json"}},{"package":{"name":"grub","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/grub?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.06-r0"}]}],"versions":["2.02-r0","2.02-r1","2.02-r10","2.02-r11","2.02-r12","2.02-r13","2.02-r14","2.02-r15","2.02-r16","2.02-r17","2.02-r18","2.02-r19","2.02-r2","2.02-r20","2.02-r3","2.02-r4","2.02-r5","2.02-r6","2.02-r7","2.02-r8","2.02-r9","2.02_beta3-r0","2.02_beta3-r1","2.02_beta3-r2","2.02_beta3-r3","2.02_beta3-r4","2.02_beta3-r5","2.02_beta3-r6","2.02_beta3-r7","2.04-r0","2.04-r1","2.04-r2","2.04-r3"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20233.json"}},{"package":{"name":"grub","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/grub?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.06-r0"}]}],"versions":["2.02-r0","2.02-r1","2.02-r10","2.02-r11","2.02-r12","2.02-r13","2.02-r14","2.02-r15","2.02-r16","2.02-r17","2.02-r18","2.02-r19","2.02-r2","2.02-r20","2.02-r3","2.02-r4","2.02-r5","2.02-r6","2.02-r7","2.02-r8","2.02-r9","2.02_beta3-r0","2.02_beta3-r1","2.02_beta3-r2","2.02_beta3-r3","2.02_beta3-r4","2.02_beta3-r5","2.02_beta3-r6","2.02_beta3-r7","2.04-r0","2.04-r1","2.04-r2","2.04-r3"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20233.json"}},{"package":{"name":"grub","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/grub?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.06-r0"}]}],"versions":["2.02-r0","2.02-r1","2.02-r10","2.02-r11","2.02-r12","2.02-r13","2.02-r14","2.02-r15","2.02-r16","2.02-r17","2.02-r18","2.02-r19","2.02-r2","2.02-r20","2.02-r3","2.02-r4","2.02-r5","2.02-r6","2.02-r7","2.02-r8","2.02-r9","2.02_beta3-r0","2.02_beta3-r1","2.02_beta3-r2","2.02_beta3-r3","2.02_beta3-r4","2.02_beta3-r5","2.02_beta3-r6","2.02_beta3-r7","2.04-r0","2.04-r1","2.04-r2","2.04-r3"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20233.json"}},{"package":{"name":"grub","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/grub?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.06-r0"}]}],"versions":["2.02-r0","2.02-r1","2.02-r10","2.02-r11","2.02-r12","2.02-r13","2.02-r14","2.02-r15","2.02-r16","2.02-r17","2.02-r18","2.02-r19","2.02-r2","2.02-r20","2.02-r3","2.02-r4","2.02-r5","2.02-r6","2.02-r7","2.02-r8","2.02-r9","2.02_beta3-r0","2.02_beta3-r1","2.02_beta3-r2","2.02_beta3-r3","2.02_beta3-r4","2.02_beta3-r5","2.02_beta3-r6","2.02_beta3-r7","2.04-r0","2.04-r1","2.04-r2","2.04-r3"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20233.json"}},{"package":{"name":"grub","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/grub?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.06-r0"}]}],"versions":["2.02-r0","2.02-r1","2.02-r10","2.02-r11","2.02-r12","2.02-r13","2.02-r14","2.02-r15","2.02-r16","2.02-r17","2.02-r18","2.02-r19","2.02-r2","2.02-r20","2.02-r3","2.02-r4","2.02-r5","2.02-r6","2.02-r7","2.02-r8","2.02-r9","2.02_beta3-r0","2.02_beta3-r1","2.02_beta3-r2","2.02_beta3-r3","2.02_beta3-r4","2.02_beta3-r5","2.02_beta3-r6","2.02_beta3-r7","2.04-r0","2.04-r1","2.04-r2","2.04-r3"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20233.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"}]}