ESPHome remote code execution via arbitrary file write
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
ESPHome is a system to control your ESP8266/ESP32. A security misconfiguration in the edit configuration file API in the dashboard component of ESPHome version 2023.12.9 (command line installation) allows authenticated remote attackers to read and write arbitrary files under the configuration directory rendering remote code execution possible. This vulnerability is patched in 2024.2.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| esphome | esphome | = 2023.12.9 | — | No fix listed | CNA |
| — | esphome (PyPI) | 2023.12.9 to before 2024.2.1 | 2024.2.1 | Patch available | GHSA-8p25-3q46-8q2p |
- esphome Vendoresphome Affected = 2023.12.9 Fixed in — No fix listed CNA
- esphome (PyPI) Vendor— Affected 2023.12.9 to before 2024.2.1 Fixed in 2024.2.1 Patch available GHSA-8p25-3q46-8q2p
Remediation
- Fix · GHSA-8p25-3q46-8q2p esphome (PyPI) Fixed in 2024.2.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-27081
- 2026-10-03 Alias added: GHSA-8p25-3q46-8q2p
References
More Esphome vulnerabilities
- TI-2026-19197 ESPHome vulnerable to denial-of-service via out-of-bounds check bypass in the API component CVSS 4.0LOW 1.7
- TI-2024-18126 ESPHome vulnerable to stored Cross-site Scripting in edit configuration file API CVSS 3.1HIGH 8.7
Sources
- CVE-2024-27081 · CVE Program
- CVE-2024-27081 · NVD
- FIRST EPSS
- GHSA-8p25-3q46-8q2p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences