CVE-2024-27081
HIGH 8.8CVSS 3.1ESPHome vulnerable to remote code execution via arbitrary file write
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.
- Published
- 26 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-8p25-3q46-8q2pPYSEC-2026-1328
- Sources
- NVDJSONOSV GHSA-8p25-3q46-8q2pJSONOSV PYSEC-2026-1328JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | esphome | esphomecpe:2.3:a:esphome:esphome:2023.12.9:*:*:*:*:*:*:* |
= 2023.12.9 | |
| OSV | PyPI | esphome | >= 2023.12.9, < 2024.2.1 | 2024.2.1 |
References
- https://github.com/esphome/esphome/commit/d814ed1d4adc71fde47c4df41215bee449884513 · Patch, WEB
- https://github.com/esphome/esphome/security/advisories/GHSA-8p25-3q46-8q2p · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-27081 · ADVISORY
- https://github.com/esphome/esphome · PACKAGE
- https://pypi.org/project/esphome · PACKAGE
- https://github.com/advisories/GHSA-8p25-3q46-8q2p · ADVISORY
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 26 Feb 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Mar 2024)