CVE-2026-55687

ESF-IDF: Stack-Based Out-of-Bounds Write in JPEG Decoder DQT Marker Parsing

Published Jul 10, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. Versions 6.0.1, 5.5.4, 5.4.4, 5.3.5, and possibly prior contain an out-of-bounds write in jpeg_parse_dqt_marker() in components/esp_driver_jpeg/jpeg_parse_marker.c because the attacker-controlled DQT marker Tq nibble is used as an index into the qt_tbl array without validating that it is in the range 0..3, allowing malformed JPEG input to corrupt stack memory and reliably trigger a denial of service. This issue is fixed in version 6.0.2 and is expected to be fixed in versions 5.5.5, 5.4.5, and 5.3.6.

Analysis

AI-generated

Technical impact

The issue is an out‑of‑bounds write in the JPEG decoder’s DQT marker parser. In jpeg_parse_dqt_marker() the Tq nibble from an attacker‑controlled JPEG image is used directly as an index into the qt_tbl array without checking that it is between 0 and 3. This lack of bounds validation can cause the decoder to write beyond the end of the stack buffer, corrupting stack memory and reliably triggering a denial of service. The weakness corresponds to CWE‑121 (Stack-based Buffer Overflow) and CWE‑787 (Out‑of‑Bounds Write).

Affected Systems

Espressif Internet of Things Development Framework (ESP‑IDF) versions 6.0.1, 5.5.4, 5.4.4, 5.3.5 and earlier are affected. The vulnerability is fixed in ESP‑IDF v6.0.2 and will be fixed in the forthcoming releases v5.5.5, v5.4.5, and v5.3.6.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity, while the EPSS score of less than 1% indicates a very low probability of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, the likely attack vector is the delivery of a malicious JPEG file to any component that parses images, which can be remote or local depending on how the device receives image data. An attacker who can supply such a file may cause the target system to crash, resulting in a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ESP‑IDF to a patched release (v6.0.2 or later, or v5.5.5, v5.4.5, or v5.3.6).
  • If a patch is not immediately available, disable JPEG decoding or restrict JPEG parsing to trusted sources only.
  • Add bounds checking in the DQT marker parser to ensure the Tq value is between 0 and 3 before indexing qt_tbl.

Generated by OpenCVE AI on August 1, 2026 at 12:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Espressif
Espressif esp-idf
Vendors & Products Espressif
Espressif esp-idf
Type Values Removed Values Added
Description ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. Versions 6.0.1, 5.5.4, 5.4.4, 5.3.5, and possibly prior contain an out-of-bounds write in jpeg_parse_dqt_marker() in components/esp_driver_jpeg/jpeg_parse_marker.c because the attacker-controlled DQT marker Tq nibble is used as an index into the qt_tbl array without validating that it is in the range 0..3, allowing malformed JPEG input to corrupt stack memory and reliably trigger a denial of service. This issue is fixed in version 6.0.2 and is expected to be fixed in versions 5.5.5, 5.4.5, and 5.3.6.
Title ESF-IDF: Stack-Based Out-of-Bounds Write in JPEG Decoder DQT Marker Parsing
Weaknesses CWE-121
CWE-787
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 10, 2026, 8:58 PM
Reserved
Jun 17, 2026, 12:13 AM
Status
Deferred
Published
Jul 10, 2026, 5:16 PM
Modified
Oct 25, 2026, 3:10 PM