Vulnerability · Published Jul 22, 2026 · Assigned by NLnet Labs

CVE-2026-50252Possible cache poisoning attack by mapping source port population per thread

Medium 5.7

In plain English

A medium-severity security flaw in Unbound from NLnet Labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.7Medium
Exploit odds (30 days)0.2%top 93.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10python3-unbound1.24.2-7.el10_2.5ALSA-2026:68291
AlmaLinux:8python3-unbound1.16.2-5.14.el8_10.2ALSA-2026:69120
AlmaLinux:9python3-unbound1.24.2-3.el9_8.6ALSA-2026:68292
AlmaLinux:10unbound1.24.2-7.el10_2.5ALSA-2026:68291
AlmaLinux:8unbound1.16.2-5.14.el8_10.2ALSA-2026:69120
AlmaLinux:9unbound1.24.2-3.el9_8.6ALSA-2026:68292
AlmaLinux:10unbound-anchor1.24.2-7.el10_2.5ALSA-2026:68291
AlmaLinux:10unbound-devel1.24.2-7.el10_2.5ALSA-2026:68291
AlmaLinux:8unbound-devel1.16.2-5.14.el8_10.2ALSA-2026:69120
AlmaLinux:9unbound-devel1.24.2-3.el9_8.6ALSA-2026:68292
AlmaLinux:10unbound-dracut1.24.2-7.el10_2.5ALSA-2026:68291
AlmaLinux:9unbound-dracut1.24.2-3.el9_8.6ALSA-2026:68292
AlmaLinux:10unbound-libs1.24.2-7.el10_2.5ALSA-2026:68291
AlmaLinux:8unbound-libs1.16.2-5.14.el8_10.2ALSA-2026:69120
AlmaLinux:9unbound-libs1.24.2-3.el9_8.6ALSA-2026:68292
AlmaLinux:10unbound-utils1.24.2-7.el10_2.5ALSA-2026:68291
Alpine:v3.22unbound1.25.2-r0ALPINE-CVE-2026-50252
Alpine:v3.23unbound1.25.2-r0ALPINE-CVE-2026-50252
Alpine:v3.24unbound1.25.2-r0ALPINE-CVE-2026-50252
Debian:12unboundno fix listedDEBIAN-CVE-2026-50252
Debian:13unbound1.26.1-0+deb13u1DEBIAN-CVE-2026-50252
Debian:14unbound1.25.2-1DEBIAN-CVE-2026-50252
Rocky Linux:10unbound0:1.24.2-7.el10_2.5RLSA-2026:68291
Rocky Linux:8unbound0:1.16.2-5.14.el8_10.2RLSA-2026:69120
Rocky Linux:9unbound0:1.24.2-3.el9_8.6RLSA-2026:68292
Ubuntu:22.04:LTSunbound1.13.1-1ubuntu5.17USN-8946-1
Ubuntu:22.04:LTSunbound1.13.1-1ubuntu5.17UBUNTU-CVE-2026-50252
Ubuntu:24.04:LTSunbound1.19.2-1ubuntu3.12UBUNTU-CVE-2026-50252
Ubuntu:24.04:LTSunbound1.19.2-1ubuntu3.12USN-8946-1
Ubuntu:26.04:LTSunbound1.24.2-1ubuntu2.4UBUNTU-CVE-2026-50252
Ubuntu:26.04:LTSunbound1.24.2-1ubuntu2.4USN-8946-1
Ubuntu:26.10unboundno fix listedUBUNTU-CVE-2026-50252

Affected products (as reported)

VendorProductVersions
NLnet Labs Unbound 1.4.22 – before 1.25.2

Weakness: CWE-349 · Vector: 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

References