Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain physical/JTAG or UART ROM access
-
DeliveryTarget first-boot provisioning window
-
ExploitHalt bootloader or capture RAM/core dump
-
ExecutionRead un-zeroized XTS-AES key from stack
-
ImpactRecover flash-encryption key material
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V14 - Data Protection Sensitive info in resource not removed before reuse
|
| Exploitation Conditions | Exploitation is possible ONLY on the MCUboot Espressif port (ESP32/ESP32S2/ESP32C3) built with CONFIG_SECURE_FLASH_ENC_ENABLED, and ONLY during the single first-boot provisioning pass when flash encryption is not yet enabled; on all subsequent boots the key and sector buffers are never created, so there is nothing to recover. Recovery further REQUIRES an out-of-band memory-disclosure primitive to be available during that one boot - JTAG/debug halt, UART ROM download, a core/crash dump, or a warm-boot RAM scrape. Strong limiting factors: under the recommended CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot, all of those disclosure channels are fused off and no exposure exists; the eFuse key block is burned read+write-protected so the transient stack copy is the only readable copy; and where a disclosure channel is open (development builds), the attacker can usually already read the still-plaintext flash directly. |
| Impact | This is a genuine low-priority, defense-in-depth hardening gap, not an actionable emergency. The CVSS:3.1 vector (AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N, base 2.0) and the vuln.today 'monitor' decision label agree: exploitation needs physical/debug-local access (AV:P), is high-complexity (AC:H), and yields only limited confidentiality impact with no integrity or availability effect. No EPSS score was provided, the CVE is NOT on CISA KEV, and no public exploit or PoC reference is present in the input - no public exploit identified at time of analysis. All exploitation signals point the same direction (low real-world risk), with no conflict between them. The one caveat worth flagging: the single reference is tagged 'Denial Of Service,' which directly contradicts the CWE-226 information-exposure nature and the I:N/A:N vector - that tag is mislabeled and should be disregarded for triage. The residue (an XTS-AES flash-encryption key and one plaintext sector) is readable only during the one-time first-boot provisioning pass and only if an out-of-band RAM/stack disclosure primitive (JTAG halt, UART ROM download, core/crash dump, or warm-boot RAM scrape) is open; under the recommended CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot those channels are fused off and no exposure exists. Even where a channel is open (development builds), an attacker able to scrape RAM can typically already read the still-plaintext flash directly, so the marginal confidentiality gain is small. |
| Exploit ScenarioDerived | During a device's one-time first-boot flash-encryption provisioning, an attacker with physical access to a development-configured ESP32/S2/C3 (JTAG or UART ROM download still enabled) halts the bootloader or captures a core/RAM dump and reads the freshly generated XTS-AES key (or the last plaintext sector) left un-zeroized on the bootloader stack. No public exploit or PoC is identified, and the attack requires a specific SoC/debug configuration plus precise timing within the single provisioning boot, so it is high-complexity and not demonstrated from source alone. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
MCUboot's Espressif port can leave a freshly generated XTS-AES flash-encryption key and the final plaintext flash sector in bootloader stack memory because two local buffers in boot/espressif/hal/src/flash_encrypt.c are never zeroized before their functions return. Exposure is limited to the ESP32/ESP32S2/ESP32C3 port built with CONFIG_SECURE_FLASH_ENC_ENABLED and only during the one-time first-boot provisioning pass; recovering the residue requires an already-available out-of-band memory-disclosure channel such as JTAG, UART ROM download, a crash dump, or a warm-boot RAM scrape, and release-mode fusing plus secure boot removes those channels entirely. Assessed as a low-severity defense-in-depth gap (CVSS 2.0, CWE-226), with no public exploit identified at time of analysis.
RemediationAI
No vendor-released patch was identified at time of analysis: the advisory states that no fix has been released and that an open pull request, https://github.com/mcu-tools/mcuboot/pull/2800, targets main. Track GHSA-jwgx-96h6-4m8v at https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-jwgx-96h6-4m8v and apply PR #2800 or the resulting release once available. Until then, the effective mitigation is to provision production devices with CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot so that JTAG/debug halt, UART ROM download, core/crash dumps, and warm-boot RAM scraping are fused off during the one-time provisioning boot; the trade-off is irreversible eFuse burning and loss of debug and recovery access. In development builds where a disclosure channel remains open, no complete software mitigation exists, so restrict physical access, close JTAG, disable UART ROM download, and avoid capturing crash or core dumps during the provisioning boot, accepting that these controls reduce but do not eliminate the out-of-band disclosure primitive required for recovery.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-226 covers sensitive information remaining in memory before or after resource release, and this advisory describes exactly that: in check_and_generate_encryption_keys(), the generated XTS-AES flash-encryption key sits in the stack array keys[BLOCKS_NEEDED][32] at flash_encrypt.c:216, is filled by bootloader_fill_random() at :219, is consumed by esp_efuse_write_keys() at :223, and the function returns at :243 without a memset, bzero, or mbedtls_platform_zeroize. Separately, esp_flash_encrypt_region() uses a plaintext sector buffer buf[FLASH_SECTOR_SIZE/4] at :454 and returns at :480/:482 without scrubbing it. The same port already calls bzero for public_key_digests in boot/espressif/hal/src/secure_boot.c:75, so the omission is inconsistent with nearby practice rather than a stated policy. The affected code is scoped inside a check that short-circuits when flash encryption is already enabled, and boot/espressif/main.c:236-267 runs the provisioning path only when flash_encryption_enabled is false, so the sensitive buffers exist only during the single first-boot provisioning pass. The eFuse key block is burned read+write-protected, making the transient stack copy the only readable copy, and only for that one boot; under CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot the disclosure channels are fused off. Real-world recovery depends on a specific SoC/debug configuration and is not exercisable from source alone. The supplied feed tag says Denial Of Service, but the advisory and assessed vector describe confidentiality-only impact with no integrity or availability effect.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Needs physical/debug (JTAG/UART) access (AV:P) and a precise, config-dependent window during one provisioning boot (AC:H); only a key/sector leaks (C:L, I:N/A:N), no auth needed (PR:N).
Primary rating from Vendor (zephyrproject).
CVSS VectorVendor: zephyrproject
DescriptionCVE.org
MCUboot's Espressif port omits zeroization of two sensitive stack buffers in boot/espressif/hal/src/flash_encrypt.c. In check_and_generate_encryption_keys(), the freshly generated XTS-AES flash-encryption key is held in the stack array keys[BLOCKS_NEEDED][32] (flash_encrypt.c:216), written to eFuse via esp_efuse_write_keys(), and the function returns (flash_encrypt.c:243) without scrubbing it. In esp_flash_encrypt_region(), the plaintext flash sector buffer buf (flash_encrypt.c:454) retains the last sector's cleartext at both the success and flash_failed returns. Neither path performs a memset/bzero/mbedtls_platform_zeroize, even though the same port already does bzero for key digests in boot/espressif/hal/src/secure_boot.c.
The affected code runs only on the Espressif port with CONFIG_SECURE_FLASH_ENC_ENABLED, and only during the one-time first-boot provisioning pass when flash encryption is not yet enabled (boot/espressif/main.c); on subsequent boots the buffers are never created. Recovering the residue requires an out-of-band stack/RAM-disclosure primitive - JTAG/debug halt, UART ROM download, a core/crash dump, or a warm-boot RAM scrape - captured during that single provisioning boot. Under the recommended CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot, those channels are fused off and no exposure exists.
The practical impact is a low-severity, defense-in-depth hardening gap: a flash-encryption key (and last plaintext sector) may linger in bootloader stack memory. Because the eFuse key block is burned read+write-protected, the transient stack copy is the only readable copy, and only during one boot; in a development build where a disclosure channel is open, an attacker with that capability can usually already read the still-plaintext flash directly, so the marginal confidentiality gain is small. Confirming real-world recovery depends on a specific SoC/debug configuration not exercisable from source alone.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
EUVD-2026-134824
GHSA-jmj8-qqvq-jhqq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB