Skip to content
NewA calmer, faster ZeroHour
Vulnerability2 · 1 read

CVE-2026-101337

Stack buffer overflow in NLnet Labs NSD base64 parsing

CVSS 4.0
8.7 high
EPSS
—
Published
·
Modified
Analyze CVE-2026-101337 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

CVE-2026-101337 is a stack-based buffer overflow (CWE-121) in NLnet Labs NSD’s handling of base64 data in zone files. When base64 input is split into pieces of three characters or fewer, token lengths are miscalculated as zero bytes, which lets an attacker overwrite the stack with up to 64 KB of controlled data and can yield high confidentiality, integrity, and availability impact on the server. The flaw is triggered only when a crafted zone file is fed directly to NSD; zones that NSD itself writes, including those for which it is a secondary, are not formatted in the vulnerable way, though a zone could still arrive from an operator-controlled provisioning system. Low privileges are required (CVSS 4.0 8.7). It is not listed in CISA KEV and no public proof-of-concept is known; NLnet Labs addressed it in the NSD 4.15.3 security release.

What to do: Upgrade NSD to the 4.15.3 security release (or any later fixed build from NLnet Labs) and restart the daemon so the base64 parser fix is loaded. Until then, only load zone files produced by NSD itself or by a trusted provisioning path, and reject or re-validate externally supplied zones that contain unusually split base64 data.

ProductAffected
NLnet Labs NSDVersions fixed in the NSD 4.15.3 security release; earlier affected ranges are not listed in the advisory data
Estimated exposure
moderateOn the order of thousands of NSD authoritative server deployments — NSD is a specialist authoritative DNS server used by operators and some registries rather than a mass-market client product; there is no install count in the CVE data, so the figure is an order-of-magnitude estimate from typical public DNS…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

When base64 data is split up in pieces, of 3 character or less, tokens were incorrectly calculated to produce 0 bytes. This enables attackers to overwrite the stack with up to 64K of attacker controlled data. Zone files which are written out by NSD itself, such as for zones for which the NSD instance is secondary, will not be formatted like this. The zone file must be fed to NSD directly, (but it could come, for example, from an operator controlled provisioning system).

Weakness
CWE-121
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

1 story