CVE-2021-20233

published 3 Mar 2021 · updated 26 Feb 2026

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.

8.2HighCVSS 8.2EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
=grub 2.06

Timeline

Every event on this vulnerability

Severity changedCVE-2021-20233·
8.2High

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-20233 severity on Zeptric[![CVE-2021-20233](https://zeptric.io/badge/cve/CVE-2021-20233.svg)](https://zeptric.io/cve/CVE-2021-20233)