Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-18558

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-18558
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:53 UTC · Revision 1

Source evidence

CVE-2018-18558

core-osv · Original source

Published 13 May 2019, 13:29 UTC

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.

osv:CVE-2018-18558
Complete source record
{
  "id": "e6e7803acd06814ddfa4da137281fcdb59cbcaa9ad1d45db9394bd2965b27528",
  "url": "https://osv.dev/vulnerability/CVE-2018-18558",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-18558",
    "summary": "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.",
    "evidence": "osv:CVE-2018-18558",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-18558",
      "aliases": [
        "CVE-2018-18558"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/espressif/esp-idf",
              "type": "GIT",
              "events": [
                {
                  "introduced": "024ef51d1ae541172f5736b25df8692932382539"
                },
                {
                  "fixed": "bb56d86fde5052bbc06d3c574ea4b83e9405bfe9"
                },
                {
                  "introduced": "22489d70214a5b7650ab197ffd6ab73e9c50a772"
                },
                {
                  "last_affected": "3b92e85b308578c24f14f57371498303c198c7cb"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:espressif:esp-idf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0"
                      },
                      {
                        "fixed": "3.0.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:espressif:esp-idf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1"
                      },
                      {
                        "last_affected": "3.1.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.1.1",
            "v3.0.6-rc",
            "v3.1.1-rc2",
            "v3.0.5-rc",
            "v3.0.5",
            "v3.0.4-rc1",
            "v3.0.4",
            "v3.1-rc2",
            "v3.1",
            "v3.1-rc1",
            "v3.0.3-rc",
            "v3.0.3",
            "v3.0.2",
            "v3.1-beta1",
            "v3.0.1-rc",
            "v3.0.1",
            "v3.0",
            "v3.0-rc1",
            "v3.1-dev"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18558.json"
          }
        }
      ],
      "modified": "2026-10-20T10:48:18.089169405Z",
      "provider": "osv",
      "references": [
        "https://www.espressif.com/en/news/Espressif_Product_Security_Advisory_Concerning_Secure_Boot_%28CVE-2018-18558%29",
        "https://github.com/espressif/esp-idf/releases"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-18558",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380271,
  "published_at": "2019-05-13T13:29:02.103+00:00"
}