CVE-2026-50252

Possible cache poisoning attack by mapping source port population per thread

5.7 medium EPSS 0.19%

Published 22 Jul 2026 Updated 22 Jul 2026 CNA: NLnet Labs

Check your servers for CVE-2026-50252

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-2026-50252 affects unbound, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In NLnet Labs Unbound 1.4.22 up to and including 1.25.1, UDP source port is randomized and intended to serve as a secret value that increases the entropy of DNS transactions. When resolver load balancing policies depend on the source port while their outcome is revealed this secrecy is undermined. The vulnerability arises when the load balancing policy is consistent with respect to the incoming source UDP port and IP address while heavily depending on the incoming source UDP port as a randomization source. When the SO_REUSEPORT configuration option is enabled ('so-reuseport: yes') in Unbound (by default), it meets these conditions, making it vulnerable for DNS cache poisoning attacks. Upon startup, Unbound randomly partitions the available UDP source port space into disjoint subsets of (almost) equal size, assigning each subset to a specific worker thread. When an incoming DNS query is received, the kernel’s SO_REUSEPORT load balancing mechanism deterministically assigns the query to a socket associated with a particular thread. All outgoing DNS queries generated during the resolution of that request use source ports selected exclusively from the port subset assigned to the corresponding thread. Since these port subsets are disjoint across threads, the source port observed in a resolver’s outgoing query to an authoritative name server serves as a reliable indicator of the worker thread that processed the original client query. A malicious actor can acquire the mapping between incoming UDP source ports (for a given fixed source IP address) and Unbound worker threads and leverage it to conduct DNS cache poisoning attacks by effectively lowering the random port population per thread.

Severity (CVSS)

5.7 medium CVSS 4.0 from NLnet Labs (CNA)
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:H/E:P/U:Amber
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Attack requirements
present: an attack works only when the target is in a certain state or configuration
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Impact on the vulnerable system
confidentiality none, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality none, integrity high, availability high: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.16% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 22 Jul 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-349 Acceptance of Extraneous Untrusted Data With Trusted Data

Affected products

As the CNA lists them.

ProductVersions
Unbound
affected from 1.4.22, before 1.25.2
Other versions: unaffected

Is my server affected?

Find the installed version of unbound 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 unbound
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-50252 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-50252

RHEL, Rocky, Alma, Fedora

rpm -q unbound
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-50252

Alpine

apk list --installed | grep -i unbound

With 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-2026-50252
trivy image --scanners vuln IMAGE | grep CVE-2026-50252

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

Source: the record CVE-2026-50252 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.