Safeguard
Vulnerability Analysis•

CVE-2026-19401: High DNS Cookie Crash in NLnet Labs NSD Debug Builds

CVE-2026-19401 is a high severity crash in NSD debug builds from crafted DNS Cookie options. Upgrade NSD 4.3.7 through 4.15.0 to 4.15.1 or later.

Safeguard Security Team
3 min read

CVE-2026-19401 is a high severity (CVSS 7.5) denial of service in NLnet Labs NSD. A remote client can crash a serve child of a debugging or non-release build by sending a query with a specific number of DNS Cookie options. NSD 4.3.7 through 4.15.0 are affected, and 4.15.1 fixes it.

What's affected

NLnet Labs' advisory says NSD 4.3.7 through 4.15.0, inclusive, is affected and that NSD 4.15.1 is released with the patch. The advisory notes that the crash affects debugging or non-release build types, so a normal release build is not the target. The advisory gives no CVSS score. The 7.5 score in the record is from NVD and reflects a network attack that needs no privileges and affects availability only.

For 4.15.0, the advisory provides a patch file, patch_CVE-2026-19401.diff, which you apply from the source directory with patch -p1 and then install with make install. It says the patch was tested on 4.15.0. The sibling issue CVE-2026-18916 affects TCP service and is fixed in the same release.

How to check if you're exposed

Check the NSD version:

nsd -v

Then find out whether your binary is a debug or non-release build. Packaged builds from distributions are normally release builds, while builds you compile yourself with debugging options enabled are not. If you compile NSD, check the configure options and the build notes you kept.

If you build with debugging on in production, the check is simple: you are in scope until you upgrade or patch.

What to do now

  1. Inventory NSD instances, their versions and how each was built.
  2. Upgrade to NSD 4.15.1, which also fixes CVE-2026-18916.
  3. If you run 4.15.0, apply the advisory's patch file and rebuild.
  4. Stop running debug builds in production, and use release builds.
  5. Keep a second name server on a different build so DNS stays up if one crashes.
  6. Watch for repeated serve child restarts.

Why it matters

The weaknesses are CWE-400 (uncontrolled resource consumption) and CWE-617 (reachable assertion). In a debug build, an assertion stops the process when a condition the developers thought impossible turns out to be true. A message with a particular count of DNS Cookie options, tuned to the UDP payload size, makes that condition true, so the process aborts.

In a release build the assertion is not compiled in, which is why the advisory limits the issue to debug builds. The lesson for operators is practical: debug builds carry checks that turn bad input into crashes. A remote client that repeats the message can hamper or, from a close enough network position, deny DNS service. KEV status is false.

Try it yourself

Click through it at your own pace, or open it full screen.

Quick check

Does this affect normal release builds?

The advisory says the crash affects debugging or non-release build types.

How do I fix NSD 4.15.0 without upgrading?

Apply patch_CVE-2026-19401.diff from the advisory with patch -p1 in the source directory, then run make install.

Sources

Last reviewed: 18 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.