Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach serial/SMP recovery interface
-
ExploitSend ~500-level nested CBOR value
-
ExecutionTrigger unbounded zcbor_any_skip recursion
-
ImpactExhaust bootloader stack, device faults/hangs
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Requires MCUBOOT_SERIAL (serial/SMP recovery) to be compiled in - it is NOT enabled by default - and the device must be in serial-recovery mode, which is normally gated on a physical pin (CONFIG_BOOT_SERIAL_ENTRANCE_GPIO / PIN_RESET) or reached via the no-valid-image fallback path. The attacker must be able to deliver bytes to that recovery transport. No authentication is required (PR:N): the vulnerable zcbor_any_skip() is reached pre-authentication, during image upload and in the echo handler, before the uploaded image's signature is checked. Limiting factors that reduce real-world risk: the feature is non-default; entry is physically gated on most products (hence the vendor's AV:P); and whether a fault actually occurs depends on the board's bootloader stack size, which was not measured. The products genuinely at risk are those exposing serial recovery over an externally reachable transport, or that auto-enter recovery when no valid image is present. |
| Impact | This is a genuinely low-priority issue by every available signal, and the signals are consistent rather than conflicting. The vendor CVSS is 2.4 (CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L): physical attack vector, no privileges, no user interaction, and availability-only impact with no confidentiality or integrity loss. The vuln.today decision label is 'monitor', not act_now/emergency. There is no EPSS score, no CISA KEV listing (not actively exploited), and no public exploit or PoC reference in the input - only the vendor fix commit and advisory. The impact is a temporary denial of service: the bootloader's stack overflows and the device faults or hangs during recovery, recoverable by reset, which is consistent with A:L rather than A:H. One tension worth flagging: the CVSS uses AV:P (physical), while the advisory explicitly says 'products that expose serial recovery over an externally reachable transport' are the ones at risk, which would raise the vector to adjacent or network for those specific deployments - verify the transport exposure per product. Note also that the input Tags ('Authentication Bypass', 'Buffer Overflow') contradict the advisory, which states there is no authentication bypass and no controlled out-of-bounds write. Net: real but low-severity, DoS-only, gated behind a non-default feature; not an emergency, worth patching on normal maintenance cadence (bounded to products that actually enable serial recovery). |
| Exploit ScenarioDerived | An attacker with reach to a device's serial/SMP recovery interface (MCUBOOT_SERIAL) sends a single CBOR request containing a deeply nested list/map - roughly 500 levels fit in the 512-byte receive buffer at one byte per level - as an unknown map key or echo payload. This is parsed pre-authentication by zcbor_any_skip(), whose unbounded per-level recursion exhausts the bootloader's small stack and faults or hangs the device during recovery. No public exploit code is identified at time of analysis, and because AC:L the trigger is straightforward once the recovery interface is reachable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Unbounded CBOR recursion in MCUboot's serial-recovery command parser lets an unauthenticated party crash or hang a device in recovery mode. MCUboot 2.0.0 through 2.5.0 vendor zcbor 0.8.1, whose zcbor_any_skip() recurses one C-stack frame per level of list/map nesting with no depth cap; a single ~512-byte SMP request can carry roughly 500 nesting levels (one 0x81 byte each), reaching the vulnerable skip path via zcbor_map_decode_bulk() for unrecognised map keys and via the echo handler, both before any image signature check. Impact is availability only (stack exhaustion causing fault or hang), and real-world exposure is narrow: MCUBOOT_SERIAL is not enabled by default and recovery entry is normally gated on a physical pin, which is why this is scored AV:P at CVSS 2.4; remediation is a low-urgency upgrade, there is no public exploit identified at time of analysis, and the upstream fix (commit 1b9d870, PR #2992) bounds skip depth and is merged on main with 2.5.1 as the projected fixed release. Note that the associated tags 'Authentication Bypass' and 'Buffer Overflow' overstate the advisory's own findings, which explicitly rule out both.
RemediationAI
Upgrade to MCUboot 2.5.1 once it is published, or backport commit 1b9d870bad5ee45419824fe038ada8901d873749 (PR #2992) from main, which vendors zcbor 0.8.3 with a bounded skip path; details are in advisory GHSA-jchr-4hhc-j9gj. If a backport is taken manually, the essential change is to thread a depth counter through zcbor_any_skip() and fail with a new ZCBOR_ERR_MAX_DEPTH once ZCBOR_MAX_SKIP_DEPTH (default 8, build-overridable) is exceeded, and to make zcbor_unordered_map_end_decode() restore the saved payload/elem_count and fail cleanly when the skip errors; alternatively, have zcbor_map_decode_bulk() reject values nested beyond a small constant before calling the skip. The trade-off of a low ZCBOR_MAX_SKIP_DEPTH is that legitimate, deeply nested SMP/CBOR payloads will be rejected, so the limit must be set above the deepest nesting your recovery protocol actually uses. Compensating controls while patching: build with MCUBOOT_SERIAL disabled where serial recovery is not operationally required, which removes the vulnerable code path entirely but also removes DFU recovery; keep recovery entry gated on CONFIG_BOOT_SERIAL_ENTRANCE_GPIO / PIN_RESET so an attacker cannot reach the parser without physical access, accepting that this does not help products that auto-enter recovery via the no-valid-image fallback; and avoid exposing the serial-recovery transport on an externally reachable interface, since the recursive skip is reached before authentication and no credential or signature check can mitigate it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CBOR is a compact binary serialisation format, and zcbor is the encoder/decoder library vendored into MCUboot under boot/zcbor. The flaw is CWE-674 (uncontrolled recursion): zcbor_any_skip(), used to fast-forward past an encoded value without decoding it, handles list and map types by copying the decoder state (memcpy(&state_copy, state, sizeof(zcbor_state_t))) and then recursively invoking itself once per member. That path does not use zcbor's backup stack, and ZCBOR_MAX_ELEM_COUNT is defined as SIZE_MAX, so nothing in the vendored 0.8.1 code limits nesting depth; each level of nesting costs a full zcbor_state_t copy plus locals on the call stack, and one attacker byte (0x81 for a single-element array) buys one more level. The sinks in MCUboot are boot/boot_serial/src/zcbor_bulk.c, where zcbor_map_decode_bulk() calls zcbor_any_skip() on the value of any map key it does not recognise, and the echo handler in boot/boot_serial/src/boot_serial.c (around line 1241), which does the same on unknown keys. The image-upload command parser (boot_serial.c, zcbor_map_decode_bulk around line 938) routes through the former, so the recursion is entered on attacker-controlled bytes during upload, entirely before signature validation. The precondition is a build with MCUBOOT_SERIAL compiled in; the receive buffer is MCUBOOT_SERIAL_MAX_RECEIVE_SIZE (512 bytes by default), which bounds the achievable nesting to roughly 500 levels. The upstream fix vendors zcbor 0.8.3, introducing ZCBOR_ERR_MAX_DEPTH and a ZCBOR_MAX_SKIP_DEPTH constant (default 8, overridable at build time) that threads a depth counter through the new internal any_skip() helper, failing with ZCBOR_ERR_MAX_DEPTH once lists/maps nest beyond the limit, and also hardens zcbor_unordered_map_end_decode() to restore payload/elem_count and fail cleanly if the skip errors.
Know when Mcuboot gets its next vulnerability
- 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:L/PR:N/UI:N/S:U/C:N/I:N/A:L
AV:P and AC:L because recovery is physically pin-gated serial by default and the crafted nesting is trivial; PR:N/UI:N as the path is pre-auth; only A:L (transient DoS), no C/I impact.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
The vendored zcbor decoder's zcbor_any_skip() in boot/zcbor/src/zcbor_decode.c descends one C-stack frame per level of CBOR nesting. On a list or map it copies the decoder state (memcpy(&state_copy, state, sizeof(zcbor_state_t))) and recurses once per member, with no depth cap: the skip path does not use zcbor's backup stack, and ZCBOR_MAX_ELEM_COUNT is SIZE_MAX, so nothing bounds how deep the recursion goes.
That function is reached on attacker-controlled bytes before any authentication. MCUboot's serial-recovery command parser decodes SMP/CBOR requests with zcbor_map_decode_bulk() (boot/boot_serial/src/zcbor_bulk.c), which skips any map key it does not recognise by calling zcbor_any_skip() on the encoded value; the echo handler in boot/boot_serial/src/boot_serial.c calls it directly on the same footing. Both run during image upload, long before the uploaded image's signature is checked. The default receive buffer is MCUBOOT_SERIAL_MAX_RECEIVE_SIZE = 512 bytes and each nesting level costs a single byte to encode (0x81), so roughly 500 levels of nesting fit in one request - comfortably more than a bootloader's stack can absorb, since every frame carries a full zcbor_state_t copy plus locals.
The impact is availability only: the bootloader's stack overflows and the device faults or hangs during recovery. There is no controlled out-of-bounds write that escapes the DFU buffer, no disclosure, and no authentication bypass - the recursion grows the stack with the decoder's own internal state. Whether a given board actually exhausts its stack depends on that board's bootloader stack size, which we did not measure; the fix is nevertheless unconditional, because an unauthenticated pre-authentication code path must not have its safety depend on a per-board stack margin.
Exposure requires MCUBOOT_SERIAL (serial/SMP recovery), which is not enabled by default, and recovery entry is normally gated on a physical pin (CONFIG_BOOT_SERIAL_ENTRANCE_GPIO / PIN_RESET), with a no-valid-image fallback path. Products that expose serial recovery over an externally reachable transport, or that fall into recovery when no valid image is present, are the ones at risk.
The fix is to bound the skip: thread a recursion-depth counter through zcbor_any_skip() (or have zcbor_map_decode_bulk() reject values nested beyond a small constant) and fail once the limit is exceeded - equivalently, take the bounded-skip implementation from upstream zcbor.
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Pre-authentication stack memory corruption in MCUboot's encrypted serial-recovery upload path (versions 1.9.0 through 2.
MCUboot 1.1.0 and later can be driven to boot un-revalidated firmware in the primary slot because security-critical inva
An out-of-bounds read of MCUboot's static flash-area slot table on the Zephyr port lets anyone who can reach the unauthe
NULL pointer dereference in MCUboot's serial-recovery image-upload handler (bs_upload) crashes the bootloader during a r
MCUboot 1.6.0 through 2.4.0 hashes a candidate image over ih_hdr_size + ih_img_size + ih_protect_tlv_size taken from the
An out-of-bounds stack write in MCUboot's legacy split-image validation routine (split_image_check() in boot/bootutil/sr
MCUboot's measured-boot record builder leaks uninitialised bootloader stack contents into the measurement field when it
An out-of-bounds flash read in MCUboot's TLV iterator, bootutil_tlv_iter_next(), lets a crafted firmware image drive the
MCUboot builds that use the TinyCrypt AES-CTR backend leave the expanded AES-128 content-encryption key schedule sitting
MCUboot 1.9.0 through 2.4.0 built with encrypted-image support (MCUBOOT_ENC_IMAGES / Zephyr CONFIG_BOOT_ENCRYPT_IMAGE) t
EUVD-2026-134712
GHSA-746r-q6q8-7vc7
NVD
CVE.org
EPSS
Exploit-DB