Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply extreme float value via network/serial input
-
DeliverySketch converts input to float/double
-
ExploitPasses value to String::concat() or +=
-
Executiondtostrf() writes beyond 20-byte stack buffer
-
PersistStack memory corruption
-
ImpactDevice crash (DoS) or conditional MCU code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all three of the following conditions simultaneously: (1) the target Arduino AVR board has an active communication channel that accepts externally controlled data (e.g., network interface via Ethernet or WiFi shield, Bluetooth, serial-over-USB, or similar); (2) the sketch converts that external data to a C float or double type; and (3) the resulting float/double is passed to String::concat(float), String::concat(double), String::operator+=(float/double), or the + operator with a float/double operand in ArduinoCore-avr prior to 1.8.8. The overflow is triggered only when the float/double value is near the representable extremes (roughly ±3.4×10³⁸ for float). Arduino boards with no network or external communication interface, or sketches that never concatenate externally derived floats to String objects, are not remotely exploitable. Reliable arbitrary code execution is additionally limited by the AVR architecture's lack of an MMU and the very small RAM (2-8 KB on typical boards), making a crash or reset the far more probable outcome than controlled RCE. |
| Impact | The CVSS 4.0 base vector (AV:N/AC:L/AT:N/PR:N/UI:N, score 6.9) reflects the scenario where a network-connected Arduino sketch can receive attacker-controlled data and pass it through the vulnerable path without authentication or user interaction. However, the impact vector (VA:L only, no VI, VC, or subsequent-system impacts) appears to understate the description's acknowledgment of conditional RCE on the MCU - though this may be intentional given that reliable code execution on a resource-constrained AVR without an MMU is far harder than a simple crash. No EPSS data, no CISA KEV listing, and no POC code appear in the available intelligence, all pointing to low real-world exploitation probability at this time. Practical risk is strongly gated by deployment context: the board must be network-connected AND the sketch must convert externally supplied input to float/double AND concatenate it to a String object - a combination that is non-trivial but not rare in IoT sensor or telemetry applications. The primary realistic impact is a device reset or hang (DoS), not reliable arbitrary code execution; even a mid-sized industrial automation operator in boleslawiec running networked AVR-based sensor arrays should prioritize patching in the next maintenance window but need not treat this as an emergency comparable to a confirmed KEV entry. The CVSS 4.0 AC:L metric is reasonable - crafting a float near FLT_MAX is trivial once the attack path is understood. |
| Exploit ScenarioDerived | An attacker targeting an Arduino Mega running a network-connected sketch (e.g., via an Ethernet shield or ESP8266 co-processor) crafts a UDP or TCP message containing a floating-point payload with a value near FLT_MAX (~3.4×10³⁸). The sketch parses the value as a float and appends it to a diagnostic log String via +=, triggering dtostrf() to write a 42+ character string into the 20-byte stack buffer, smashing the return address and causing the board to crash or - on firmware with specific stack layouts - redirecting execution. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 11, 2026
Stack-based buffer overflow in ArduinoCore-avr versions prior to 1.8.8 allows an attacker who can influence float or double values passed to Arduino String concatenation methods to corrupt stack memory on AVR-based Arduino boards, causing denial of service and - under specific conditions - arbitrary code execution on the microcontroller. The flaw resides in String::concat(float) and String::concat(double) in WString.cpp, where a fixed 20-byte stack buffer is insufficient for values near the extremes of the float or double range when processed by dtostrf(). A vendor-released patch is available in version 1.8.8; no public exploit has been identified at time of analysis.
RemediationAI
Vendor-released patch: ArduinoCore-avr 1.8.8. Upgrade the 'Arduino AVR Boards' platform package to version 1.8.8 or later via the Arduino IDE Boards Manager (Tools → Board → Boards Manager → 'Arduino AVR Boards') or via Arduino CLI with arduino-cli core update-index && arduino-cli core upgrade arduino:avr. The release is available at https://github.com/arduino/ArduinoCore-avr/releases/tag/1.8.8. If immediate upgrade is not feasible, sketches can be hardened at the application level by validating and clamping float or double values to a safe representable range (e.g., rejecting any value with absolute magnitude above 1e15) before passing them to String::concat(), +=, or the + operator with float/double operands. This workaround requires code changes in every affected sketch and does not protect against values already in scope; it should be treated as a temporary measure only. See the full security advisory at https://github.com/arduino/ArduinoCore-avr/security/advisories/GHSA-fhp2-f8hw-mgpj.
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
The vulnerability is rooted in cores/arduino/WString.cpp within the ArduinoCore-avr platform, the foundational source that drives all official Arduino AVR-architecture boards (Uno, Mega, Nano, Leonardo, and compatibles). The String::concat(float) and String::concat(double) methods each allocated a hardcoded char buf[20] on the stack to hold the string representation of the numeric value before appending it. The conversion is performed by dtostrf(), an AVR-libc function that converts floating-point to string with no enforced output-length cap. For values near FLT_MAX (~3.4×10³⁸) or DBL_MAX, the resulting decimal representation (including sign, digits, decimal point, and two fixed decimal places) far exceeds 20 characters, causing dtostrf() to write past the buffer boundary into adjacent stack frames - a textbook CWE-120 (Buffer Copy without Checking Size of Input) defect. The PR #622 fix, confirmed by the diff, replaces the hardcoded sizes with compile-time constants derived from FLT_MAX_10_EXP and DBL_MAX_10_EXP, correctly bounding the buffer for all representable values. The same change is applied to both the float and double variants.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
AV:N for network-connected sketches; AC:L as crafting a near-FLT_MAX value is trivial; A:H for stack corruption causing device crash; I:L for conditional but unconfirmed RCE.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
ArduinoCore-avr contains the source code and configuration files of the Arduino AVR Boards platform. A vulnerability in versions prior to 1.8.8 allows an attacker to trigger a stack-based buffer overflow when concatenating floating-point values of sufficiently large magnitude onto an Arduino String object. By passing values near the extremes of the float or double range to String::concat(float), String::concat(double), String::operator+=(), or the + operator with a float/double operand, dtostrf() writes beyond the fixed-size stack buffer, causing memory corruption and denial of service. Under specific conditions, this could enable arbitrary code execution on AVR-based Arduino boards. The fix is included starting from the 1.8.8 release.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-76769
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB