Improper Input Validation Affecting espressif/esp-idf package, versions [2.0,3.0.6)[3.1,3.1.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-ESPRESSIFESPIDF-2364346
  • published26 Jan 2022
  • disclosed13 May 2019
  • creditUnknown

Introduced: 13 May 2019

CVE-2018-18558  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade espressif/esp-idf to version 3.0.6, 3.1.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation. An issue was discovered in Espressif ESP-IDF 2.x and 3.x before 3.0.6 and 3.1.x before 3.1.1. Insufficient validation of input data in the 2nd stage bootloader allows a physically proximate attacker to bypass secure boot checks and execute arbitrary code, by crafting an application binary that overwrites a bootloader code segment in process_segment in components/bootloader_support/src/esp_image_format.c. The attack is effective when the flash encryption feature is not enabled, or if the attacker finds a different vulnerability that allows them to write this binary to flash memory.

CVSS Base Scores

version 3.1