CVE-2024-27081 json
ESPHome remote code execution via arbitrary file write
published 2y ago modified 2mo ago also EUVD-2024-0877 , GHSA-8p25-3q46-8q2p , PYSEC-2026-1328
- cvss
- 7.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
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.
Patch / fix
Is CVE-2024-27081 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
1.54% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/esphome/esphome/security/advisories/GHSA-8p25-3q46-8q2p referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | esphome | >=2023.12.9, <2024.2.1 |
2024.2.1 |
Affected products
- esphome esphome
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/esphome/esphome/commit/d814ed1d4adc71fde47c4df41215bee449884513
web, patch
-
github.com
/esphome/esphome/security/advisories/GHSA-8p25-3q46-8q2p
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-27081
advisory
-
github.com
/esphome/esphome
package
-
pypi.org
/project/esphome
package
-
github.com
/advisories/GHSA-8p25-3q46-8q2p
advisory
Sources
- CVE List CVE-2024-27081
- GitHub Advisory GHSA-8p25-3q46-8q2p
- NVD CVE-2024-27081
- OSV PYSEC-2026-1328
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.