CVE-2017-8412 Memory corruption in n/a

High 8.8 Published Updated

A stack-based buffer overflow in the mp4ts binary allows remote attackers to execute arbitrary code via crafted HTTP requests.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2017-8412?

CVE-2017-8412 is a high-severity memory corruption vulnerability in n/a, published on 2 Jul 2019. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue was discovered on D-Link DCS-1100 and DCS-1130 devices. The device has a custom binary called mp4ts under the /var/www/video folder. It seems that this binary dumps the HTTP VERB in the system logs. As a part of doing that it retrieves the HTTP VERB sent by the user and uses a vulnerable sprintf function at address 0x0000C3D4 in the function sub_C210 to copy the value into a string and then into a log file. Since there is no bounds check being performed on the environment variable at address 0x0000C360 this results in a stack overflow and overwrites the PC register allowing an attacker to execute buffer overflow or even a command injection attack.

Weakness: CWE-119

Which versions are affected by CVE-2017-8412?

It affects 2 products.

Products include Dlink Dcs-1100 Firmware, Dlink Dcs-1130 Firmware.

How do I fix CVE-2017-8412?

No fix has been published for CVE-2017-8412 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2017-8412 being exploited?

There is no known exploitation of CVE-2017-8412 in the wild and no public exploit code.

Sources

Also known as GHSA-c5p6-2wgp-hcc2.

Is CVE-2017-8412 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free