ALPINE-CVE-2021-20233
Record from OSV · Published March 3, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| grub | Alpine:v3.23 | 2.06-r0 |
| grub | Alpine:v3.22 | 2.06-r0 |
| grub | Alpine:v3.17 | 2.06-r0 |
| grub | Alpine:v3.20 | 2.06-r0 |
| grub | Alpine:v3.21 | 2.06-r0 |
| grub | Alpine:v3.19 | 2.06-r0 |
| grub | Alpine:v3.18 | 2.06-r0 |
| grub | Alpine:v3.24 | 2.06-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.23 | grub | 2.02-r8, 2.02_beta3-r6, 2.04-r3 |
| Alpine:v3.22 | grub | 2.02_beta3-r3, 0, 2.02-r1 |
| Alpine:v3.17 | grub | 2.02-r0, 2.02_beta3-r5, 2.02_beta3-r2 |
| Alpine:v3.20 | grub | 2.02-r16, 2.02-r1, 2.02-r10 |
| Alpine:v3.21 | grub | 2.02-r18, 0, 2.02-r10 |
| Alpine:v3.19 | grub | 2.04-r1, 0, 2.02-r0 |
| Alpine:v3.18 | grub | 2.02-r18, 0, 2.02-r11 |
| Alpine:v3.24 | grub | 0 |
Timeline
- Mar 3, 2021 CVE Published
- Jun 15, 2026 CVE Updated
- Aug 8, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln ALPINE-CVE-2021-20233
vulnetix vdb fixes ALPINE-CVE-2021-20233
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/ALPINE-CVE-2021-20233/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart