Vulnerability · Published Feb 26, 2024 · Assigned by GitHub_M

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

High 7.2

In plain English

A high-severity path traversal in esphome from esphome. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.2High
Exploit odds (30 days)1.5%top 25.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIesphome2024.2.1GHSA-8p25-3q46-8q2p
PyPIesphome2024.2.1PYSEC-2026-1328

Affected products (as reported)

VendorProductVersions
esphome esphome = 2023.12.9

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

References