# CVE-2024-27081: ESPHome remote code execution via arbitrary file write

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.54%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-26T16:29:21.620Z
- Modified: 2026-09-10T03:50:00.268Z
- Also known as: GHSA-8p25-3q46-8q2p, PYSEC-2026-1328
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- esphome esphome: = 2023.12.9; 2023.12.9
- esphome (PyPI): from 2023.12.9 before 2024.2.1

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/esphome/esphome/security/advisories/GHSA-8p25-3q46-8q2p> (exploit, vendor-advisory, web)
- <https://github.com/esphome/esphome/commit/d814ed1d4adc71fde47c4df41215bee449884513> (patch, 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)

## Sources

- CVE List: [CVE-2024-27081](https://www.cve.org/CVERecord?id=CVE-2024-27081), CVE Terms of Use, modified 2024-08-27
- GitHub Advisory Database: [GHSA-8p25-3q46-8q2p](https://github.com/advisories/GHSA-8p25-3q46-8q2p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27081](https://nvd.nist.gov/vuln/detail/CVE-2024-27081), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1328](https://osv.dev/vulnerability/PYSEC-2026-1328), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-27081 · Whole record: https://cve.day/CVE-2024-27081.json · Rebuilt by cve.day 2026-11-25T22:58:37.064Z
