CVE-2018-1046 Memory corruption in pdns

High 7.0 Published Updated

A stack-based buffer overflow in the dnsreplay tool allows arbitrary code execution or crashes when processing crafted PCAP files with the -ecs-stamp option.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-1046?

CVE-2018-1046 is a high-severity memory corruption vulnerability in [UNKNOWN] pdns, published on 16 Jul 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

pdns before version 4.1.2 is vulnerable to a buffer overflow in dnsreplay. In the dnsreplay tool provided with PowerDNS Authoritative, replaying a specially crafted PCAP file can trigger a stack-based buffer overflow, leading to a crash and potentially arbitrary code execution. This buffer overflow only occurs when the -ecs-stamp option of dnsreplay is used.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2018-1046?

It affects 1 product.

Linux distribution packages (3)
pdns SUSE:HPE Helion OpenStack 8All versions4.1.2-3.3.1
pdns SUSE:OpenStack Cloud 8All versions4.1.2-3.3.1
pdns SUSE:Package Hub 12 SP1All versions4.1.2-8.1

Products include Powerdns Pdns.

How do I fix CVE-2018-1046?

Upgrade to a fixed version.

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

Is CVE-2018-1046 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-1046, GHSA-622f-mfw7-jxg6, MGASA-2018-0255, SUSE-SU-2018:1660-1, UBUNTU-CVE-2018-1046, openSUSE-SU-2018:1462-1.

Is CVE-2018-1046 in your software?

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

Check your SBOMs for free