Cyber Resilience

CVE-2024-8129

MediumPublic PoC

Published: 24 August 2024

Published
24 August 2024
Modified
27 August 2024
KEV Added
Patch
CVSS Score v4 5.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.1701 95.1th percentile
Risk Priority 21 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2024-8129 is a medium-severity Command Injection (CWE-77) vulnerability in Dlink Dns-1550-04 Firmware. Its CVSS base score is 5.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Unix Shell (T1059.004); ranked in the top 4.9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis

A command injection vulnerability exists in multiple end-of-life D-Link NAS products including the DNS-120, DNR-202L, DNS-315L, DNS-320 series, DNS-327L, DNS-340L, DNS-345, and DNS-1550-04. The flaw resides in the cgi_s3_modify function within /cgi-bin/s3.cgi of the HTTP POST Request Handler; unsanitized input to the f_job_name argument allows arbitrary command execution. The issue affects all firmware versions up to 20240814 and was assigned CWE-77 and CWE-78.

An attacker with network access and valid credentials can send a crafted HTTP POST request to the affected CGI endpoint, resulting in remote command injection. The public exploit disclosure demonstrates that successful exploitation grants the ability to execute operating-system commands on the device.

D-Link’s security advisory SAP10383 and associated vendor statements confirm the products are beyond end-of-life support, explicitly advising retirement and replacement rather than patching. No firmware updates are available.

The EPSS score stands at 0.1701 with no subsequent increase reported after disclosure.

EU & UK References

Vulnerability details

A vulnerability, which was classified as critical, was found in D-Link DNS-120, DNR-202L, DNS-315L, DNS-320, DNS-320L, DNS-320LW, DNS-321, DNR-322L, DNS-323, DNS-325, DNS-326, DNS-327L, DNR-326, DNS-340L, DNS-343, DNS-345, DNS-726-4, DNS-1100-4, DNS-1200-05 and DNS-1550-04 up to 20240814. Affected is the function cgi_s3_modify…

more

of the file /cgi-bin/s3.cgi of the component HTTP POST Request Handler. The manipulation of the argument f_job_name leads to command injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. NOTE: This vulnerability only affects products that are no longer supported by the maintainer. NOTE: Vendor was contacted early and confirmed that the product is end-of-life. It should be retired and replaced.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1202 Indirect Command Execution Stealth
Adversaries may abuse utilities that allow for command execution to bypass security restrictions that limit the use of command-line interpreters.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
Why these techniques?

Command injection via HTTP POST in CGI script (cgi_s3_modify, f_job_name) on public-facing NAS web interface enables exploitation of public-facing application (T1190), exploitation of remote services (T1210), indirect command execution (T1202), and Unix shell execution (T1059.004) on Linux-based devices.

Affected Assets

dlink
dns-1550-04 firmware
all versions
dlink
dns-1200-05 firmware
all versions
dlink
dns-1100-4 firmware
all versions
dlink
dns-726-4 firmware
all versions
dlink
dns-345 firmware
all versions
dlink
dns-343 firmware
all versions
dlink
dns-340l firmware
all versions
dlink
dnr-326 firmware
all versions
dlink
dns-327l firmware
all versions
dlink
dns-326 firmware
all versions
+10 more product configuration(s) — see NVD for full list

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-78

Platform-independent apps typically execute inside a managed runtime or sandbox that restricts direct OS command execution, reducing the ability to exploit OS command injection.

addresses: CWE-78

Validates inputs to block special elements that would alter OS command execution.

References