CVE-2024-21878
Command Injection through Unsafe File Name Evaluation in internal script in Enphase IQ Gateway v4.x to and including 8.x
Mitigation
- Vendor workaround: It is adviced to not expose this device to untrusted network acces. In other words, make sure this decvice is not reachable from the internet, a guest network or a public network.
- This will ensure that the likelihood of any attacks that can get access to the OS and thus abuse this vulnerability is reduced.
Who should check
- Anyone running Enphase Envoy >= 8.x, < 8.2.4225; 7.x; 6.x; 5.x; 4.x
Vulnerability facts
- Affected
- Enphase Envoy >= 8.x, < 8.2.4225; 7.x; 6.x; 5.x; 4.x
- Fixed in
- Enphase Envoy 8.2.4225
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v4.0, CNA)CVSS:4.0/AV:L/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L/S:P/AU:Y/R:I/V:C/RE:HOpen in CVSS calculator
Show all 16 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Attack requirements: None
- Privileges required: High
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: Low
- S: P
- AU: Y
- R: I
- V: C
- RE: H
- EPSS
- 2.01% chance of exploitation in 30 days (percentile 82, 2026-11-26)
- CWE
- CWE-77
- Modified
Description
Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in Enphase IQ Gateway (formerly known as Envoy) allows OS Command Injection. This vulnerability is present in an internal script.This issue affects Envoy: from 4.x up to and including 8.x and is currently unpatched.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Enphase Envoy | >= 8.x, < 8.2.4225; 7.x; 6.x; 5.x; 4.x | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-21878. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-21878.md Affected: Enphase Envoy >= 8.x, < 8.2.4225; 7.x; 6.x; 5.x; 4.x Fixed in: Enphase Envoy 8.2.4225 Steps: 1. Search this machine and project for Enphase Envoy: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-21878 being exploited?
There is no confirmed exploitation: CVE-2024-21878 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.01% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-21878?
High: CVSS 7.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-21878?
Enphase Envoy >= 8.x, < 8.2.4225; 7.x; 6.x; 5.x; 4.x.
Is there a fix for CVE-2024-21878?
Yes. Fixed in Enphase Envoy 8.2.4225. Vendor workaround: It is adviced to not expose this device to untrusted network acces. In other words, make sure this decvice is not reachable from the internet, a guest network or a public network. This will ensure that the likelihood of any attacks that can get access to the OS and thus abuse this vulnerability is reduced.
How do I check if I'm affected by CVE-2024-21878?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.