cve.bz

CVE-2023-50387 (KeyTrap)

7.5 highEPSS >99.9%Fix available

Known as KeyTrap

High (7.5). EPSS >99.9% estimated probability of exploitation activity in the next 30 days.

On this page
Certain DNSSEC aspects of the DNS protocol (in RFC 4033, 4034, 4035, 6840, and related RFCs) allow remote attackers to cause a denial of service (CPU consumption) via one or more DNSSEC responses, aka the "KeyTrap" issue. One of the concerns is that, when there is a zone with many DNSKEY and RRSIG records, the protocol specification implies that an algorithm must evaluate all combinations of DNSKEY and RRSIG records.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
>99.9% (unchanged from >99.9% a week ago; >99.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-50387 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-50387?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-50387?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-50387 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0
microsoft:windows_server_2008r2:sp1
microsoft:windows_server_2012r2
fedoraproject:fedora39
thekelleys:dnsmasqbefore 2.90
nic:knot_resolverbefore 5.71
powerdns:recursorfrom 4.8.0 before 4.8.6
powerdns:recursorfrom 4.9.0 before 4.9.3
powerdns:recursorfrom 5.0.0 before 5.0.2
isc:bindfrom 9.0.0 through 9.16.46
isc:bindfrom 9.18.0 through 9.18.22
isc:bindfrom 9.19.0 through 9.19.20
nlnetlabs:unboundbefore 1.19.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10bind91:9.11.5.P4+dfsg-5.1+deb10u11DLA-3816-1
Debian10unbound1.9.0-2+deb10u4DLA-3736-1
Debian11bind91:9.16.48-1DSA-5621-1
Debian11dnsmasq2.85-1+deb11u1DLA-3974-1
Debian11systemd247.3-7+deb11u6DLA-3859-1
Debian11unbound1.13.1-1+deb11u2DSA-5620-1
Debian12bind91:9.18.24-1DEBIAN-CVE-2023-50387 DSA-5621-1
Debian12dnsjavano fix listedDEBIAN-CVE-2023-50387
Debian12dnsmasq2.90-4~deb12u1DEBIAN-CVE-2023-50387
Debian12knot-resolver5.6.0-1+deb12u1DEBIAN-CVE-2023-50387 DSA-5633-1
Debian12pdns-recursor4.8.6-1DEBIAN-CVE-2023-50387 DSA-5626-1
Debian12systemd252.23-1~deb12u1DEBIAN-CVE-2023-50387
8 more for Debian in the JSON and on Debian's page.
Ubuntu20.04:LTSbind91:9.16.48-0ubuntu0.20.04.1UBUNTU-CVE-2023-50387 USN-6642-1
Ubuntu20.04:LTSbind9-libs, knot-resolverno fix listedUBUNTU-CVE-2023-50387
Ubuntu20.04:LTSdnsmasq2.90-0ubuntu0.20.04.1UBUNTU-CVE-2023-50387 USN-6657-1
Ubuntu20.04:LTSunbound1.9.4-2ubuntu1.5UBUNTU-CVE-2023-50387 USN-6665-1
Ubuntu22.04:LTSbind91:9.18.18-0ubuntu0.22.04.2UBUNTU-CVE-2023-50387 USN-6633-1
Ubuntu22.04:LTSbind9-libsno fix listedUBUNTU-CVE-2023-50387
Ubuntu22.04:LTSdnsmasq2.90-0ubuntu0.22.04.1UBUNTU-CVE-2023-50387 USN-6657-1
Ubuntu22.04:LTSunbound1.13.1-1ubuntu5.4UBUNTU-CVE-2023-50387 USN-6665-1 USN-8946-1
Ubuntu24.04:LTSunbound1.19.1-1ubuntu1UBUNTU-CVE-2023-50387 USN-8946-1
Ubuntu24.04:LTS, 25.10, 26.04:LTSisc-dhcpno fix listedUBUNTU-CVE-2023-50387
Ubuntu26.04:LTSunbound1.24.2-1ubuntu2.4USN-8946-1
UbuntuPro:14.04:LTSbind91:9.9.5.dfsg-3ubuntu0.19+esm12UBUNTU-CVE-2023-50387 USN-6723-1
10 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morebind-dyndb-ldap, bind-dyndb-ldap-debuginfo0:11.1-7.el7_9.1RHSA-2024:3741
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationbind, bind-sdb, bind-libs and 14 more32:9.11.4-26.P2.el7_9.16RHSA-2024:3741
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationdhcp, dhclient, dhcp-libs and 3 more12:4.2.5-83.el7_9.2RHSA-2024:3741
Red Hatenterprise_linux:7::computenodebind, bind-sdb, bind-devel and 9 more32:9.11.4-26.P2.el7_9.16RHSA-2024:3741
Red Hatenterprise_linux:7::computenodedhcp, dhcp-devel, dhcp-debuginfo12:4.2.5-83.el7_9.2RHSA-2024:3741
Red Hatenterprise_linux:8::appstreambind, bind-sdb, bind-libs and 22 more32:9.11.36-11.el8_9.1RHSA-2024:1782
Red Hatenterprise_linux:8::appstreambind, bind-sdb, bind-libs and 22 more32:9.11.36-14.el8_10RHSA-2024:3271
Red Hatenterprise_linux:8::appstreambind9.16, bind9.16-libs, bind9.16-utils and 9 more32:9.16.23-0.16.el8_9.2RHSA-2024:1781
Red Hatenterprise_linux:8::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-31.el8_9.2RHSA-2024:1335
Red Hatenterprise_linux:8::appstreamunbound, unbound-libs, unbound-devel and 5 more0:1.16.2-5.el8_9.2RHSA-2024:0965
Red Hatenterprise_linux:8::baseosbind, bind-debuginfo, bind-debugsource and 10 more32:9.11.36-11.el8_9.1RHSA-2024:1782
Red Hatenterprise_linux:8::baseosbind, bind-debuginfo, bind-debugsource and 10 more32:9.11.36-14.el8_10RHSA-2024:3271
48 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 13 moreunbound1.20.0-150100.10.13.1SUSE-SU-2024:1991-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morednsmasq2.90-150100.7.28.1SUSE-SU-2025:0130-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Module for Basesystem 15 SP6 and 2 morebind9.16.6-150300.22.44.1SUSE-SU-2024:1982-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2 and 1 morebind9.16.6-150000.12.74.2SUSE-SU-2024:2033-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2 and 1 morelibuv1.18.0-150000.3.2.1SUSE-SU-2024:2033-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 morednsmasq2.90-150400.16.3.1SUSE-SU-2025:0071-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morebind9.16.48-150400.5.40.1SUSE-SU-2024:0590-1
SUSELinux Enterprise Micro 5.5unbound1.20.0-150100.10.13.1SUSE-SU-2024:1991-2
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Server Applications 15 SP5bind9.16.48-150500.8.16.1SUSE-SU-2024:0574-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6unbound1.20.0-150600.23.3.1SUSE-SU-2024:1923-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5bind9.11.22-3.52.1SUSE-SU-2024:1894-1
SUSELinux Micro 6.0dnsmasq2.90-1.1SUSE-SU-2025:20118-1
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5bind9.16.48-150500.8.16.1SUSE-SU-2024:0574-1
openSUSELeap 15.5pdns-recursor4.8.6-bp155.2.3.1openSUSE-SU-2024:0048-1
openSUSELeap 15.5unbound1.20.0-150100.10.13.1SUSE-SU-2024:1991-1
openSUSELeap 15.6unbound1.20.0-150600.23.3.1SUSE-SU-2024:1923-1
openSUSELeap 15.6, Leap Micro 5.5dnsmasq2.90-150400.16.3.1SUSE-SU-2025:0071-1
openSUSETumbleweedbind9.18.24-1.1openSUSE-SU-2024:13687-1
openSUSETumbleweeddnsmasq2.90-1.1openSUSE-SU-2024:13707-1
openSUSETumbleweedpdns-recursor5.0.2-1.1openSUSE-SU-2024:13680-1
openSUSETumbleweedunbound1.19.1-1.1openSUSE-SU-2024:13742-1
AlmaLinux8bind, bind-sdb, bind-libs and 14 more32:9.11.36-11.el8_9.1ALSA-2024:1782
AlmaLinux8bind, bind-sdb, bind-libs and 14 more32:9.11.36-14.el8_10ALSA-2024:3271
AlmaLinux8bind9.16, bind9.16-doc, bind9.16-libs and 6 more32:9.16.23-0.16.el8_9.2.alma.1ALSA-2024:1781
AlmaLinux8dnsmasq, dnsmasq-utils2.79-31.el8_9.2ALSA-2024:1335
AlmaLinux8unbound, unbound-libs, unbound-devel and 1 more1.16.2-5.el8_9.2ALSA-2024:0965
AlmaLinux9bind, bind-doc, bind-libs and 7 more32:9.16.23-14.el9_3.4ALSA-2024:1789
AlmaLinux9bind, bind-doc, bind-libs and 7 more32:9.16.23-18.el9_4.1ALSA-2024:2551
AlmaLinux9bind-dyndb-ldap11.9-8.el9_3.3.alma.1ALSA-2024:1789
AlmaLinux9bind-dyndb-ldap11.9-9.el9_4.alma.1ALSA-2024:2551
AlmaLinux9dnsmasq, dnsmasq-utils2.85-14.el9_3.1ALSA-2024:1334
AlmaLinux9unbound, unbound-libs, unbound-devel and 1 more1.16.2-3.el9_3.1ALSA-2024:0977
Rocky Linux8bind2:9.11.36-11.el8_9.1RLSA-2024:1782
Rocky Linux8bind2:9.11.36-14.el8_10RLSA-2024:3271
Rocky Linux8bind9.162:9.16.23-0.16.el8_9.2RLSA-2024:1781
Rocky Linux8dhcp2:4.3.6-49.el8_9.1RLSA-2024:1782
Rocky Linux8dhcp2:4.3.6-50.el8_10RLSA-2024:3271
Rocky Linux8dnsmasq0:2.79-31.el8_9.2RLSA-2024:1335
Rocky Linux9bind2:9.16.23-18.el9_4.1RLSA-2024:2551
Rocky Linux9bind-dyndb-ldap0:11.9-9.el9_4RLSA-2024:2551
Alpinev3.16bind9.16.48-r0ALPINE-CVE-2023-50387
Alpinev3.17, v3.18, v3.19 and 5 morebind9.18.24-r0ALPINE-CVE-2023-50387
Alpinev3.17, v3.18, v3.19 and 5 morednsmasq2.90-r0ALPINE-CVE-2023-50387
Alpinev3.17, v3.18, v3.19 and 5 moreunbound1.19.1-r0ALPINE-CVE-2023-50387
Alpinev3.18, v3.19pdns-recursor4.9.3-r0ALPINE-CVE-2023-50387
Alpinev3.18, v3.19, v3.20 and 3 moreknot-resolver5.7.1-r0ALPINE-CVE-2023-50387
Alpinev3.20, v3.21, v3.22 and 2 morepdns-recursor5.0.2-r0ALPINE-CVE-2023-50387
Alpinev3.24knot-resolver5.7.7-r0ALPINE-CVE-2023-50387
Azure Linux2bind9.16.48-1AZL-34350
Azure Linux2dnsmasq2.90-1AZL-34419
Azure Linux2unbound1.19.1-1AZL-34440
Azure Linux3bind9.20.0-1AZL-34559
Azure Linux3unbound1.19.1-1AZL-35328
Alpaquita23, streambind9.18.24-r0BELL-CVE-2023-50387
Alpaquita23, streamdnsmasq2.90-r0BELL-CVE-2023-50387

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in DNSSEC-validating resolvers is of important severity because it can lead to uncontrolled CPU consumption, resulting in a Denial of Service (DoS). By exploiting this flaw, attackers can send specially crafted DNS responses that cause the resolver to enter a state of excessive resource utilization. This can severely impact the availability and performance of DNS services, affecting not only the targeted resolver but potentially cascading to other dependent systems and services.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONbind-32:9.8.2-0.68.rc1.el6_10.14Fixed 2025-01-06RHSA-2025:0039
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONbind-dyndb-ldap-0:2.3-8.el6_10.1Fixed 2025-01-06RHSA-2025:0039
Red Hat Enterprise Linux 7bind-32:9.11.4-26.P2.el7_9.16Fixed 2024-06-10RHSA-2024:3741
Red Hat Enterprise Linux 7bind-dyndb-ldap-0:11.1-7.el7_9.1Fixed 2024-06-10RHSA-2024:3741
Red Hat Enterprise Linux 7dhcp-12:4.2.5-83.el7_9.2Fixed 2024-06-10RHSA-2024:3741
Red Hat Enterprise Linux 7 Extended Lifecycle Supportunbound-0:1.6.6-5.el7_9.1Fixed 2024-12-12RHSA-2024:11003
Red Hat Enterprise Linux 8unbound-0:1.16.2-5.el8_9.2Fixed 2024-02-26RHSA-2024:0965
Red Hat Enterprise Linux 8dnsmasq-0:2.79-31.el8_9.2Fixed 2024-03-14RHSA-2024:1335
Red Hat Enterprise Linux 8bind9.16-32:9.16.23-0.16.el8_9.2Fixed 2024-04-11RHSA-2024:1781
Red Hat Enterprise Linux 8bind-32:9.11.36-11.el8_9.1Fixed 2024-04-12RHSA-2024:1782
Red Hat Enterprise Linux 8bind-32:9.11.36-14.el8_10Fixed 2024-05-22RHSA-2024:3271
Red Hat Enterprise Linux 8.2 Advanced Update Supportunbound-0:1.7.3-12.el8_2.1Fixed 2024-05-06RHSA-2024:2696
Red Hat Enterprise Linux 8.2 Advanced Update Supportbind-32:9.11.13-6.el8_2.7Fixed 2024-05-16RHSA-2024:2890
Red Hat Enterprise Linux 8.2 Advanced Update Supportdhcp-12:4.3.6-40.el8_2.3Fixed 2024-05-16RHSA-2024:2890
Red Hat Enterprise Linux 8.2 Advanced Update Supportdnsmasq-0:2.79-11.el8_2.3Fixed 2024-06-13RHSA-2024:3929
Red Hat Enterprise Linux 8.2 Telecommunications Update Serviceunbound-0:1.7.3-12.el8_2.1Fixed 2024-05-06RHSA-2024:2696
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionsunbound-0:1.7.3-12.el8_2.1Fixed 2024-05-06RHSA-2024:2696
Red Hat Enterprise Linux 10bindNot affected
Red Hat Enterprise Linux 7dnsmasqNot affected
Red Hat Enterprise Linux 9dhcpNot affected
36 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-50387.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-319-08Siemens SINEC INS2024-11-12MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET HUNTING - DNS Response containing multiple DNSSEC RRSIG Entries (Algorithm 14) - Possible CVE-2023-50387 Activity sid 2050979

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON