CVE-2026-101338
Description
A flaw was found in NSD. When processing zone files containing specially formatted Service Binding (SVCB) or HTTPS resource records, the base64 decoding routine can exceed memory limits and cause a stack-based buffer overflow. An attacker capable of provisioning or supplying crafted zone files directly to the server could exploit this vulnerability to achieve arbitrary code execution or cause a Denial of Service (DoS).
Statement
This vulnerability is rated as Important severity because parsing malicious zone records can lead to arbitrary code execution or service termination within the context of the NSD daemon. Exploitation is constrained by the requirement that the attacker must be able to feed direct zone configurations into the server, such as through delegated provisioning pipelines or administrative input, rather than standard DNS zone transfers. Secondary NSD servers that receive zone data via standard AXFR/IXFR network transfers are not affected, limiting the exposure to primary instances accepting direct file imports.
Understanding the Weakness (CWE)
Integrity
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.
Other
Technical Impact: Unexpected State
Subsequent write operations can produce undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.