{"schemaVersion":3,"id":"CVE-2021-20233","aliases":["ALPINE-CVE-2021-20233","UBUNTU-CVE-2021-20233","DEBIAN-CVE-2021-20233"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-03-03T16:44:34.000Z","modified":"2024-08-03T17:37:22.631Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.2,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":3.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":3.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":3.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00605,"percentile":0.47893,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00605},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00605,"percentile":0.47893}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00605,"percentile":0.47893}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"grub","name":"grub","label":"grub","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/grub","purlType":"apk","versions":[{"text":"< 2.06-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.06-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"grub2","name":"grub2","label":"grub2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/grub2","purlType":"deb","versions":[{"text":"< 2.04-16","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.04-16","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2-signed","name":"grub2-signed","label":"grub2-signed","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2-signed","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.167~18.04.5","noFixRecorded":false,"fixedIn":null},{"text":"< 1.167.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.167~18.04.5 | < 1.167.2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2-unsigned","name":"grub2-unsigned","label":"grub2-unsigned","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2-unsigned","purlType":"deb","versions":[{"text":"< 2.04-1ubuntu44.1.2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.04-1ubuntu44.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.04-1ubuntu44.1.2 | < 2.04-1ubuntu44.2","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"gnu","product":"grub2","name":"grub2","label":"grub2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.06","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.06","eol":null,"hubHref":"/vendor/gnu/grub2"},{"vendor":"netapp","product":"ontap_select_deploy_administration_utility","name":"ontap select deploy administration utility","label":"ontap_select_deploy_administration_utility","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/ontap_select_deploy_administration_utility"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0 | 8.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (ELS)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"7.9"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"},{"vendor":"redhat","product":"enterprise_linux_server_aus","name":"enterprise linux server aus","label":"enterprise_linux_server_aus","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.2","noFixRecorded":false,"fixedIn":null},{"text":"7.3","noFixRecorded":false,"fixedIn":null},{"text":"7.4","noFixRecorded":false,"fixedIn":null},{"text":"7.6","noFixRecorded":false,"fixedIn":null},{"text":"7.7","noFixRecorded":false,"fixedIn":null},{"text":"8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.2 | 7.3 | 7.4 | 7.6 | 7.7 | 8.2","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_server_aus"},{"vendor":"redhat","product":"enterprise_linux_server_eus","name":"enterprise linux server eus","label":"enterprise_linux_server_eus","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.6","noFixRecorded":false,"fixedIn":null},{"text":"7.7","noFixRecorded":false,"fixedIn":null},{"text":"8.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.6 | 7.7 | 8.1","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_server_eus"},{"vendor":"redhat","product":"enterprise_linux_server_tus","name":"enterprise linux server tus","label":"enterprise_linux_server_tus","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.4","noFixRecorded":false,"fixedIn":null},{"text":"7.6","noFixRecorded":false,"fixedIn":null},{"text":"7.7","noFixRecorded":false,"fixedIn":null},{"text":"8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.4 | 7.6 | 7.7 | 8.2","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_server_tus"},{"vendor":"redhat","product":"enterprise_linux_workstation","name":"enterprise linux workstation","label":"enterprise_linux_workstation","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_workstation"}],"affectedCount":12,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1926263","label":"bugzilla.redhat.com/show_bug.cgi?id=1926263","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZWZ36QK4IKU6MWDWNOOWKPH3WXZBHT2R/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://security.gentoo.org/glsa/202104-05","label":"security.gentoo.org/glsa/202104-05","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220325-0001/","label":"security.netapp.com/advisory/ntap-20220325-0001/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-20233","label":"security.alpinelinux.org/vuln/CVE-2021-20233","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-20233","label":"ubuntu.com/security/CVE-2021-20233","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4992-1","label":"ubuntu.com/security/notices/USN-4992-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20233","label":"www.cve.org/CVERecord?id=CVE-2021-20233","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-20233","label":"security-tracker.debian.org/tracker/CVE-2021-20233","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20233","label":"nvd.nist.gov/vuln/detail/CVE-2021-20233","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-4867-1","MGASA-2021-0291","MGASA-2021-0315","OPENSUSE-SU-2021:0462-1","OPENSUSE-SU-2024:10824-1","RHSA-2021:0696","RHSA-2021:0697","RHSA-2021:0698","RHSA-2021:0699","RHSA-2021:0700","RHSA-2021:0701","RHSA-2021:0702","RHSA-2021:0703","RHSA-2021:0704","RHSA-2021:1734","RHSA-2021:2566","RHSA-2021:2790","RHSA-2021:3675","SUSE-SU-2021:0679-1","SUSE-SU-2021:0681-1","SUSE-SU-2021:0682-1","SUSE-SU-2021:0683-1","SUSE-SU-2021:0684-1","SUSE-SU-2021:0685-1","SUSE-SU-2021:14659-1","USN-4992-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0462-1","OPENSUSE-SU-2024:10824-1","SUSE-SU-2021:0679-1","SUSE-SU-2021:0681-1","SUSE-SU-2021:0682-1","SUSE-SU-2021:0683-1","SUSE-SU-2021:0684-1","SUSE-SU-2021:0685-1","SUSE-SU-2021:14659-1","USN-4992-1"]},"timeline":[{"kind":"published","date":"2021-03-03T16:44:34.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:37:22.631Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T13:27:54.982Z","stale":false,"partial":false}}