UnboundApplication · Nlnetlabs

CVE-2026-50252

CRITICAL · 9.3 CVSS v3.1 Published 2026-07-22
Fix available
A fix is available. Upgrade to 1.25.2 or later.
See remediation →
98/100
Remediation priority · Urgent
No privileges Zero-click 4 weeks old

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

In Unbound 1.4.22-1.25.1, SO_REUSEPORT causes UDP source ports to be partitioned into disjoint subsets per worker thread. Since the kernel's load balancing deterministically assigns queries to threads based on source IP/port, the source port in outgoing queries reveals which thread handled the original request. This undermines source port entropy and enables DNS cache poisoning attacks.

MitigationDisable so-reuseport in unbound.conf or upgrade to a patched version when available. This removes the per-thread port partitioning that leaks thread identity.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
UnboundApplication
Affected:>= 1.4.22, < 1.25.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Adjacent
Complexity
Low
Privileges
None
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check Unbound version
    Run 'unbound -V' or 'unbound-control status' to retrieve the installed version number
    Affected if Version is >= 1.4.22 and < 1.25.2
  2. Locate unbound.conf
    Find the Unbound configuration file, typically at /etc/unbound/unbound.conf or /etc/unbound.conf
    Affected if Configuration file exists and the installation is vulnerable based on version check
  3. Check SO_REUSEPORT setting
    Search the configuration file for 'so-reuseport:' directive. If present, note its value; if absent, the default 'yes' applies
    Affected if so-reuseport is not explicitly set to 'no' (default is enabled)

You are affected if Unbound version is between 1.4.22 and 1.25.1 inclusive and SO_REUSEPORT is enabled (default) in your configuration.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 1.25.2 or later
Fixed in 1.25.2
Interim mitigation

Disable so-reuseport in unbound.conf or upgrade to a patched version when available. This removes the per-thread port partitioning that leaks thread identity.

Recommended fix High confidence

1.25.2

  1. 1. Backup your current Unbound configuration (typically in /etc/unbound/ or /etc/unbound/unbound.conf)
  2. 2. Check your current Unbound version by running: unbound -V
  3. 3. Upgrade Unbound to version 1.25.2 or later using your package manager (e.g., apt-get install unbound=1.25.2, yum install unbound-1.25.2, or compile from source)
  4. 4. After upgrade, verify the new version: unbound -V
  5. 5. Restart the Unbound service to load the new version: systemctl restart unbound or service unbound restart
  6. 6. Verify the service is running: systemctl status unbound
  7. 7. Confirm the fix is applied by checking that SO_REUSEPORT behavior no longer leaks thread information in source port selection

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Unbound Scoped from the published advisory
  • Consultation2.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
16.0 hours of engineering $2,800
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,480.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-50252 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-50252 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data