Root command execution via unsanitized filename eval
Published Aug 10, 2024 · Updated Mar 11, 2025
OS command injection in Enphase IQ Gateway 4.x through 8.2.4224 allows local users with high privileges to execute commands as root. The device's /etc/profile iterates .cols files in /opt/emu/db and passes a filename-derived value to shell eval without sanitizing metacharacters. Standalone exploitation requires high local privileges; a path-traversal and cache-file chain lets remote attackers plant a filename that executes during the daily job or a reboot.
Summary
What happened
OS command injection in Enphase IQ Gateway 4.x through 8.2.4224 allows local users with high privileges to execute commands as root. The device's /etc/profile iterates .cols files in /opt/emu/db and passes a filename-derived value to shell eval without sanitizing metacharacters. Standalone exploitation requires high local privileges; a path-traversal and cache-file chain lets remote attackers plant a filename that executes during the daily job or a reboot.
The record
- CVE
- CVE-2024-21878
- Published
- Aug 10, 2024
- Updated
- Mar 11, 2025
- Vendor
- Enphase Energy
- Product
- Envoy Communications Gateway
- Classifications
- CWE-77, CWE-78, CAPEC-88, T1059.004, T1068
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Aug 10, 2024CVE publishedPublication date reported by the CVE source.
- Mar 11, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.0 <8.2.4225
- Affected versionversion=4.x
- Affected versionversion=5.x
- Affected versionversion=6.x
- Affected versionversion=7.x
- Affected versionversion=8.x <8.2.4225
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- DIVD unauthenticated root command-execution chainfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo