# CVE-2021-20233: A flaw was found in grub2 in versions prior to 2.06.

- Severity: High 8.2 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2021-03-03T16:44:34.000Z
- Modified: 2026-06-17T03:33:31.160Z
- Weaknesses: CWE-787
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- grub2: grub 2.06
- gnu grub2: before 2.06
- redhat enterprise_linux: 7.0; 8.0
- redhat enterprise_linux_server_aus: 7.2; 7.3; 7.4; 7.6; 7.7; 8.2
- redhat enterprise_linux_server_eus: 7.6; 7.7; 8.1
- redhat enterprise_linux_server_tus: 7.4; 7.6; 7.7; 8.2
- redhat enterprise_linux_workstation: 7.0
- fedoraproject fedora: 33; 34
- netapp ontap_select_deploy_administration_utility: no versions given

## Every score

- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1926263> (issue-tracking, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZWZ36QK4IKU6MWDWNOOWKPH3WXZBHT2R/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202104-05> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20220325-0001/> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-20233](https://www.cve.org/CVERecord?id=CVE-2021-20233), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20233](https://nvd.nist.gov/vuln/detail/CVE-2021-20233), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20233 · Whole record: https://cve.day/CVE-2021-20233.json · Rebuilt by cve.day 2026-11-25T22:58:00.126Z
