CVE-2021-20233 in Fedoraproject Fedora and 7 more products
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 qu...
Affects 8 products from 4 vendors. Facts below cite their sources.
Requires local access, low complexity, high privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Fedoraproject | Fedora | 33 34 |
| Gnu | Grub2 | < 2.06 |
| Netapp | Ontap Select Deploy Administration Utility | No version listed by the source |
| Redhat | Enterprise Linux Server Eus | 7.6 7.7 8.1 |
| Redhat | Enterprise Linux | 7.0 8.0 |
| Redhat | Enterprise Linux Server Tus | 7.4 7.6 7.7 8.2 |
| Redhat | Enterprise Linux Workstation | 7.0 |
| Redhat | Enterprise Linux Server Aus | 7.2 7.3 7.4 7.6 7.7 8.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-20233 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-249164-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| Published | 2021-03-03 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
A memory corruption vulnerability exists in grub2 versions prior to 2.06 due to incorrect length calculation in the menu rendering code, allowing an attacker to corrupt memory by one byte for each quote in the input.
The vulnerability is triggered by the incorrect assumption in the Setparam_prefix() function that a quoted single quote requires 3 characters, when it actually requires 4. This discrepancy allows for memory corruption, potentially leading to arbitrary code execution or system crashes.
Questions
What is CVE-2021-20233?
A memory corruption vulnerability exists in grub2 versions prior to 2.06 due to incorrect length calculation in the menu rendering code, allowing an attacker to corrupt memory by one byte for each quote in the input.
What is the CVSS score for CVE-2021-20233?
CVE-2021-20233 has CVSS 8.2 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.6%.
Is CVE-2021-20233 actively exploited?
No confirmed active exploitation of CVE-2021-20233 as of 2026-09-25.
How do I remediate CVE-2021-20233?
Priority: HIGH. Advisory: https://bugzilla.redhat.com/show_bug.cgi?id=1926263
What systems are affected by CVE-2021-20233?
CVE-2021-20233 affects Fedoraproject Fedora; Gnu Grub2; Netapp Ontap Select Deploy Administration Utility; Redhat Enterprise Linux Server Eus, Enterprise Linux, Enterprise Linux Server Tus, Enterprise Linux Workstation, Enterprise Linux Server Aus.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.