{"id":"CVE-2026-71259","state":"PUBLISHED","title":"ESPHome external_components file:// Scheme Validation Bypass Leading to Remote Code Execution","description":"ESPHome through 2026.7.0-dev contains an operator-precedence bug in the cv.url validator in esphome/config_validation.py. Because binds tighter than , any file: URI passes validation regardless of netloc. This validator gates the field of the external_components YAML directive's git source schema, which is passed to (git supports file:// natively).","publishedAt":"2026-08-05T12:26:07.879Z","updatedAt":"2026-08-10T11:46:20.128Z","severity":{"score":8.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"TuranSec"},"assigner":"TuranSec","products":["esphome esphome"],"affected":[{"vendor":"esphome","product":"esphome","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2026.7.0","versionType":"semver"}],"programFiles":["esphome/config_validation.py","esphome/components/external_components/__init__.py"]}],"references":["https://github.com/esphome/esphome","https://github.com/esphome/esphome/blob/dev/esphome/config_validation.py"],"weaknesses":["CWE-184"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/71xxx/CVE-2026-71259.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-71259","state":"PUBLISHED","datePublished":"2026-08-05T12:26:07.879Z","dateUpdated":"2026-08-10T11:46:20.128Z","assignerShortName":"TuranSec","assignerOrgId":"309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c","dateReserved":"2026-08-05T12:23:34.966Z"},"containers":{"cna":{"title":"ESPHome external_components file:// Scheme Validation Bypass Leading to Remote Code Execution","descriptions":[{"lang":"en","value":"ESPHome through 2026.7.0-dev contains an operator-precedence bug in the cv.url validator in esphome/config_validation.py. Because binds tighter than , any file: URI passes validation regardless of netloc. This validator gates the field of the external_components YAML directive's git source schema, which is passed to (git supports file:// natively)."}],"affected":[{"vendor":"esphome","product":"esphome","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2026.7.0","versionType":"semver"}],"programFiles":["esphome/config_validation.py","esphome/components/external_components/__init__.py"]}],"references":[{"url":"https://github.com/esphome/esphome","tags":["third-party-advisory"]},{"url":"https://github.com/esphome/esphome/blob/dev/esphome/config_validation.py","tags":["third-party-advisory"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","baseScore":8.6,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-184","lang":"en","description":"CWE-184","type":"CWE"}]}],"providerMetadata":{"shortName":"TuranSec","orgId":"309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c","dateUpdated":"2026-08-10T11:46:20.128Z"},"credits":[{"lang":"en","value":"Alibek Baxtiyorov","type":"finder"}],"source":{"discovery":"EXTERNAL"},"datePublic":"2026-08-05T12:26:07.879Z"},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-05T15:29:11.971575Z","id":"CVE-2026-71259","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-05T15:29:29.949Z"}}]}}}