CVE-2018-1046
pdns before version 4.1.2 is vulnerable to a buffer overflow in dnsreplay. In the dnsreplay tool...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.0
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.
- Record
CVE-2018-1046- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-121
- Updated
- 2026-11-02
EUVDEUVD-2018-11702
7.0
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.
- Record
EUVD-2018-11702- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-622f-mfw7-jxg6
7.8
pdns before version 4.1.2 is vulnerable to a buffer overflow in dnsreplay. In the dnsreplay tool...
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.
- Record
GHSA-622f-mfw7-jxg6- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
NVD
7.8
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.
- Record
CVE-2018-1046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 9.3 High
AV:N/AC:M/Au:N/C:C/I:C/A:C - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
OSV
7.8
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.
- Record
CVE-2018-1046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-1046
7.8
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.
- Record
DEBIAN-CVE-2018-1046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2018-1046
7.8
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.
- Record
UBUNTU-CVE-2018-1046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.3 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0255 No score
Updated pdns packages fix security vulnerability
A stack-based buffer overflow in the dnsreplay tool occurring when
replaying a specially crafted PCAP file with the --ecs-stamp option
enabled, leading to a denial of service or potentially arbitrary code
execution (CVE-2018-1046).
- Record
MGASA-2018-0255- Updated
- 2026-11-02
OSVopenSUSE-SU-2018:1462-1 No score
Security update for pdns
pdns was updated to 4.1.2.
Security fixes:
- Dnsreplay: bail out on a too small outgoing buffer (CVE-2018-1046 bsc#1092540)
Improvements:
- API: increase serial after dnssec related updates
- Auth: lower ‘packet too short’ loglevel
- Make check-zone error on rows that have content but shouldn’t
- Auth: avoid an isane amount of new backend connections during an axfr
- Report unparseable data in stoul invalid_argument exception
- Backport: recheck serial when axfr is done
- Backport: add tcp support for alias
Bug Fixes:
- Auth: allocate new statements after reconnecting to postgresql
- Auth-bindbackend: only compare ips in ismaster() (Kees Monshouwer)
- Rather than crash, sheepishly report no file/linenum
- Document undocumented config vars
- Backport #6276 (auth 4.1.x): prevent cname + other data with dnsupdate
Misc fixes:
- Move includes around to avoid boost L conflict
- Backport: update edns option code list
- Auth: link dnspcap2protobuf against librt when needed
- Fix a warning on botan >= 2.5.0
- Auth 4.1.x: unbreak build
- Record
openSUSE-SU-2018:1462-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11156-1 No score
pdns-4.5.1-1.5 on GA media
These are all security issues fixed in the pdns-4.5.1-1.5 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11156-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1660-1 No score
Security update for pdns
This update for pdns fixes the following issues:
Security issues fixed:
- CVE-2018-1046: Fix an issue with replaying a specially crafted PCAP file that can trigger a stack-based buffer overflow, leading to a crash and potentially arbitrary code execution (bsc#1092540).
- Record
SUSE-SU-2018:1660-1- Updated
- 2026-11-02
OSVUSN-7203-1 No score
pdns, pdns-recursor vulnerabilities
Wei Hao discovered that PowerDNS Authoritative Server incorrectly handled memory when accessing certain files. An attacker could possibly use this issue to achieve arbitrary code execution. (CVE-2018-1046)
It was discovered that PowerDNS Authoritative Server and PowerDNS Recursor incorrectly handled memory when receiving certain remote input. An attacker could possibly use this issue to cause denial of service. (CVE-2018-10851)
Kees Monshouwer discovered that PowerDNS Authoritative Server and PowerDNS Recursor incorrectly handled request validation after having cached malformed input. An attacker could possibly use this issue to cause denial of service. (CVE-2018-14626)
Toshifumi Sakaguchi discovered that PowerDNS Recursor incorrectly handled requests after having cached malformed input. An attacker could possibly use this issue to cause denial of service. (CVE-2018-14644)
Nathaniel Ferguson discovered that PowerDNS Authoritative Server incorrectly handled memory when receiving certain remote input. An attacker could possibly use this issue to obtain sensitive information. (CVE-2020-17482)
Nicolas Dehaine and Dmitry Shabanov discovered that PowerDNS Authoritative Server and PowerDNS Recursor incorrectly handled IXFR requests in certain circumstances. An attacker could possibly use this issue to cause denial of service. (CVE-2022-27227)
- Record
USN-7203-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pdnsDebian:12 |
before 4.1.2-1 | 4.1.2-1 |
pdnsDebian:13 |
before 4.1.2-1 | 4.1.2-1 |
pdnsDebian:14 |
before 4.1.2-1 | 4.1.2-1 |
pdnsMageia:6 |
before 4.1.2-1.mga6 | 4.1.2-1.mga6 |
pdnsSUSE:HPE Helion OpenStack 8 |
before 4.1.2-3.3.1 | 4.1.2-3.3.1 |
pdnsSUSE:OpenStack Cloud 8 |
before 4.1.2-3.3.1 | 4.1.2-3.3.1 |
pdnsUbuntu:Pro:18.04:LTS |
before 4.1.1-1ubuntu0.1~esm1, plus listed versions 4.0.4-24.0.4-2build14.0.5-14.1.0-14.1.0-24.1.0-2build14.1.1-1 |
4.1.1-1ubuntu0.1~esm1 |
pdnsUbuntu:Pro:16.04:LTS |
before 4.0.0~alpha2-3ubuntu0.1~esm1, plus listed versions 3.4.5-1build23.4.6-23.4.6-33.4.7-13.4.7-2 Show 4 moreShow less4.0.0~alpha1-14.0.0~alpha2-24.0.0~alpha2-34.0.0~alpha2-3build1 |
4.0.0~alpha2-3ubuntu0.1~esm1 |
pdns-recursorUbuntu:Pro:16.04:LTS |
before 4.0.0~alpha2-2ubuntu0.1+esm1, plus listed versions 3.7.3-14.0.0~alpha1-14.0.0~alpha1-24.0.0~alpha2-24.0.0~alpha2-2ubuntu0.1 |
4.0.0~alpha2-2ubuntu0.1+esm1 |
pdns-recursorUbuntu:Pro:18.04:LTS |
before 4.1.1-2ubuntu0.1~esm1, plus listed versions 4.0.6-14.0.6-1build14.0.7-14.1.1-14.1.1-1build14.1.1-2 |
4.1.1-2ubuntu0.1~esm1 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
pdnsUbuntu:Pro:20.04:LTS |
before 4.2.1-1ubuntu0.1~esm1, plus listed versions 4.1.6-3build14.2.0-14.2.1-14.2.1-1build14.2.1-1build2 |
4.2.1-1ubuntu0.1~esm1 |
pdns-recursorUbuntu:Pro:20.04:LTS |
before 4.2.1-1ubuntu0.1~esm1, plus listed versions 4.2.0-64.2.1-14.2.1-1build14.2.1-1build2 |
4.2.1-1ubuntu0.1~esm1 |
pdnsUbuntu:Pro:22.04:LTS |
before 4.5.3-1ubuntu0.1~esm1, plus listed versions 4.4.1-1build14.4.1-34.4.1-44.5.2-1build14.5.3-1 |
4.5.3-1ubuntu0.1~esm1 |
pdns-recursorUbuntu:Pro:22.04:LTS |
before 4.6.0-1ubuntu1+esm1, plus listed versions 4.4.2-34.6.0-1ubuntu1 |
4.6.0-1ubuntu1+esm1 |
pdnsSUSE:Package Hub 12 SP1 |
before 4.1.2-8.1 | 4.1.2-8.1 |
pdnsopenSUSE:Tumbleweed |
before 4.5.1-1.5 | 4.5.1-1.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-1046 is a high vulnerability (CVSS 7.0) in [unknown] Pdns, published May 24, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.41%, the 72nd percentile. Fixed in pdns 4.1.2-1.
References
bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1046
nvd.nist.gov/vuln/detail/CVE-2018-1046
github.com/advisories/GHSA-622f-mfw7-jxg6
security-tracker.debian.org/tracker/CVE-2018-1046
advisories.mageia.org/MGASA-2018-0255.html
bugs.mageia.org/show_bug.cgi?id=23009
Show 30 moreShow less
openwall.com/lists/oss-security/2018/05/09/2
doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2018-02.html
blog.powerdns.com/2018/05/08/authoritative-server-4-1-2-released
suse.com/support/update/announcement/2018/suse-su-20181660-1
bugzilla.suse.com/1092540
suse.com/security/cve/CVE-2018-1046
ubuntu.com/security/CVE-2018-1046
cve.org/CVERecord?id=CVE-2018-1046
ubuntu.com/security/notices/USN-7203-1
ubuntu.com/security/CVE-2018-10851
ubuntu.com/security/CVE-2018-14626
ubuntu.com/security/CVE-2018-14644
ubuntu.com/security/CVE-2020-17482
ubuntu.com/security/CVE-2022-27227
lists.opensuse.org/archives/list/[email protected]/thread/HQSPXZY2QFCLZMVTDYNDOWYILQUQS6NR
suse.com/security/cve/CVE-2006-2069
suse.com/security/cve/CVE-2008-3337
suse.com/security/cve/CVE-2016-2120
suse.com/security/cve/CVE-2016-7068
suse.com/security/cve/CVE-2016-7072
suse.com/security/cve/CVE-2016-7073
suse.com/security/cve/CVE-2017-15091
suse.com/security/cve/CVE-2018-10851
suse.com/security/cve/CVE-2018-14626
suse.com/security/cve/CVE-2019-10162
suse.com/security/cve/CVE-2019-10163
suse.com/security/cve/CVE-2019-10203
suse.com/security/cve/CVE-2019-3871
suse.com/security/cve/CVE-2020-17482
suse.com/security/cve/CVE-2021-36754