CVE-2023-50387
Certain DNSSEC aspects of the DNS protocol (in RFC 4033, 4034, 4035, 6840, and related RFCs) allow remote attackers to cause a denial of…
Check your servers for CVE-2023-50387
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-50387 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 99.9%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 8 May 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-770 Allocation of Resources Without Limits or Throttling
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-50387 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-50387RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-50387Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-50387
trivy image --scanners vuln IMAGE | grep CVE-2023-50387
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2024-2e26eccfcb lists.fedoraproject.org · vendor advisory
- FEDORA-2024-e24211eff0 lists.fedoraproject.org · vendor advisory
- FEDORA-2024-21310568fa lists.fedoraproject.org · vendor advisory
- FEDORA-2024-b0f9656a76 lists.fedoraproject.org · vendor advisory
- FEDORA-2024-4e36df9dfd lists.fedoraproject.org · vendor advisory
- FEDORA-2024-499b9be35f lists.fedoraproject.org · vendor advisory
- FEDORA-2024-c36c448396 lists.fedoraproject.org · vendor advisory
- FEDORA-2024-c967c7d287 lists.fedoraproject.org · vendor advisory
- FEDORA-2024-e00eceb11c lists.fedoraproject.org · vendor advisory
- FEDORA-2024-fae88b73eb lists.fedoraproject.org · vendor advisory
Other references
- https://www.athene-center.de/aktuelles/key-trap athene-center.de
- https://nlnetlabs.nl/news/2024/Feb/13/unbound-1.19.1-released/ nlnetlabs.nl
- https://kb.isc.org/docs/cve-2023-50387 kb.isc.org
- https://docs.powerdns.com/recursor/security-advisories/powerdns-advisory-2024-01.html docs.powerdns.com
- https://www.theregister.com/2024/02/13/dnssec_vulnerability_internet/ theregister.com
- https://news.ycombinator.com/item?id=39367411 news.ycombinator.com
- https://www.securityweek.com/keytrap-dns-attack-could-disable-large-parts-of-internet-researchers/ securityweek.com
- https://www.isc.org/blogs/2024-bind-security-release/ isc.org
- https://news.ycombinator.com/item?id=39372384 news.ycombinator.com
- https://gitlab.nic.cz/knot/knot-resolver/-/releases/v5.7.1 gitlab.nic.cz
- https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2024q1/017430.html lists.thekelleys.org.uk
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-50387 msrc.microsoft.com
14 more
- https://access.redhat.com/security/cve/CVE-2023-50387 access.redhat.com
- https://bugzilla.suse.com/show_bug.cgi?id=1219823 bugzilla.suse.com
- https://www.athene-center.de/fileadmin/content/PDF/Technical_Report_KeyTrap.pdf athene-center.de
- [oss-security] 20240216 Re: Unbound: disclosure of CVE-2023-50387 and CVE-2023-50868 DNSSEC validation vulnerabilities openwall.com · mailing list
- [oss-security] 20240216 Re: Unbound: disclosure of CVE-2023-50387 and CVE-2023-50868 DNSSEC validation vulnerabilities openwall.com · mailing list
- [debian-lts-announce] 20240221 [SECURITY] [DLA 3736-1] unbound security update lists.debian.org · mailing list
- https://security.netapp.com/advisory/ntap-20240307-0007/ security.netapp.com
- [debian-lts-announce] 20240517 [SECURITY] [DLA 3816-1] bind9 security update lists.debian.org · mailing list
- https://lists.debian.org/debian-lts-announce/2024/11/msg00035.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/09/msg00001.html lists.debian.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZDZFMEKQTZ4L7RY46FCENWFB5MDT263R/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVRDSJVZKMCXKKPP6PNR62T7RWZ3YSDZ/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RGS7JN6FZXUSTC2XKQHH27574XOULYYJ/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BUIP7T7Z4T3UHLXFWG6XIVDP4GYPD3AI/ lists.fedoraproject.org
Source: the record CVE-2023-50387 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse