# CVE-2024-21878: Command Injection through Unsafe File Name Evaluation in internal script in Enphase IQ Gateway v4.x to and including 8.x

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **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:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 2.01% (percentile 82, 2026-11-28)
- **CWE:** CWE-77
- **Published:** 2024-08-10T17:44:48.892Z
- **Modified:** 2026-06-17T07:10:19.647Z

## Who should check

- Anyone running Enphase Envoy \>= 8.x, \< 8.2.4225; 7.x; 6.x; 5.x; 4.x

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

- Enphase Envoy: \>= 8.x, \< 8.2.4225; 7.x; 6.x; 5.x; 4.x (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

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

## References

- vendor: <https://enphase.com/cybersecurity/advisories/ensa-2024-3>
- other: <https://csirt.divd.nl/CVE-2024-21878>
- other: <https://csirt.divd.nl/DIVD-2024-00011>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-21878>

HTML: <https://flawdb.com/CVE-2024-21878> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-21878>
