High severity · published Feb 26, 2024
CVE-2024-27081
ESPHome remote code execution via arbitrary file write
8.8
CVSS
1.5%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.5% · higher than 75% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ES
esphome · esphome
= 2023.12.9 · source: vendor, NVD, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-27081
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-27081
Patch
https://github.com/esphome/esphome/commit/d814ed1d4adc71fde47c4df41215bee449884513
Exploit
https://github.com/esphome/esphome/security/advisories/GHSA-8p25-3q46-8q2p
More from esphome
8.7
CVE-2024-27287
ESPHome vulnerable to stored Cross-site Scripting in edit configuration file API
8.6
CVE-2026-71259
ESPHome external_components file:// Scheme Validation Bypass Leading to Remote Code Execution
8.1
CVE-2025-57808
ESP-IDF web_server basic auth bypass using empty or incomplete Authorization header
8.1
CVE-2024-29019
ESPHome vulnerable to Authentication bypass via Cross site request forgery
7.5
CVE-2026-23833
ESPHome vulnerable to denial-of-service via out-of-bounds check bypass in the API component
