CVE-2019-8315: D-Link DIR-878 - Command Injection
- Cve: CVE-2019-8315
- Name: D-Link DIR-878 - Command Injection
- Description: An issue was discovered on D-Link DIR-878 devices with firmware 1.12A1. This issue is a Command Injection allowing a remote attacker to execute arbitrary code, and get a root shell. A command Injection vulnerability allows attackers to execute arbitrary OS commands via a crafted /HNAP1 POST request. This occurs when any HNAP API function triggers a call to the twsystem function with untrusted input from the request body for the SetIPv4FirewallSettings API function, as demonstrated by shell metacharacters in the SrcIPv4AddressRangeStart field.
- Impact: Remote attackers can execute arbitrary OS commands with root privileges, leading to complete device compromise.
- Remediation: Update to the latest firmware version provided by D-Link that addresses this vulnerability.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution, privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.06408
- Epss percentile: 0.9385
- Assignee: [email protected]
- Published at: 2019-02-13T03:29:00Z
- Age in days: 2841
- Modified at: 2026-06-17T02:41:49Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-8315
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/lieanu/vuls/blob/master/dlink/DIR-878/firewallv4.md | nvd | 2019-02-13 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/lieanu/vuls/blob/master/dlink/DIR-878/firewallv4.md | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| dlink:dir-878_firmware | = 1.12a1 | yes | nvd | /v1/products/dlink/dir-878_firmware |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2019-02-13
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts