CVE-2021-3697

published 6 Jul 2022 · updated 19 Feb 2026

A crafted JPEG image may lead the JPEG reader to underflow its data pointer allowing user-controlled data to be written in heap. To a successful to be performed the attacker needs to perform some triage over the heap layout and craft an image with a malicious format and payload. This vulnerability can lead to data corruption and eventual code execution or secure boot circumvention. This flaw affects grub2 versions prior grub-2.12.

7.0HighCVSS 7.0EPSS 0%

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

A crafted JPEG image may lead the JPEG reader to underflow its data pointer, allowing user-controlled data to be written in heap. To a successful to be performed the attacker needs to perform some triage over the heap layout and craft an image with a malicious format and payload. This vulnerability can lead to data corruption and eventual code execution or secure boot circumvention. This flaw affects grub2 versions prior grub-2.12.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
=grub-2.06

Timeline

Every event on this vulnerability

Severity changedCVE-2021-3697·
7.0High

Embed

A live severity badge for an advisory, README or ticket

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