Link following in Knot DNS lets local users escalate to root
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Knot DNS 3.4.1 before 3.5.9 and 3.6.x before 3.6.1 are affected. The auto-generated TLS private key file is created in the KASP database directory without O_NOFOLLOW or O_EXCL, which is a link following flaw (CWE-59). A local attacker with write access to that directory, such as the knot service account, can redirect the key file so that knotd, started as root, creates a file at an arbitrary location owned by the knot user, which leads to privilege escalation to root.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
Knot DNS 3.4.1 before 3.5.9 and 3.6.x before 3.6.1 contain a link following vulnerability in self_key() in src/libknot/quic/tls_common.c that, when QUIC or TLS is enabled without a configured certificate, creates the auto-generated private key file in the KASP database directory with open() without O_NOFOLLOW or O_EXCL and then changes its owner to the configured server user with fchown(). Local attackers who can write to the KASP database directory, such as the knot service account, can place a dangling symbolic link at the key path so that knotd, when started as root before it drops privileges, creates a file at an arbitrary location owned by the knot user, leading to privilege escalation to root.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade to Knot DNS 3.5.9 or later where the installed version is before 3.5.9, and upgrade 3.6.x installations to 3.6.1 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA Knot DNS (CZ.NIC) Fixed in 3.5.9
Timeline
- 2026-12-03 Threatist record created from CVE-2026-144473
- 2026-12-04 Alias added: GHSA-5j8m-x5fx-gmgw
References
Other 6
- https://gitlab.nic.cz/knot/knot-dns/-/commit/abbce24f2e722d2ace21993948707f3ed9bc1ce3
- https://gitlab.nic.cz/knot/knot-dns/-/commit/7a88dfef273a30df4e3ceb522ee56171db31a5d8
- https://gitlab.nic.cz/knot/knot-dns/-/commit/1bc5974578c518983718be0184f74dcfbbe46f8d
- https://www.knot-dns.cz/2026-10-08-version-359.html
- https://www.knot-dns.cz/2026-10-09-version-361.html
- https://gitlab.nic.cz/knot/knot-dns
More CZ.NIC vulnerabilities
- TI-2023-27571 Certain DNSSEC aspects of the DNS protocol (in RFC 4033, 4034, 4035, 6840, and related… CVSS 3.1HIGH 7.5
- TI-2026-47140 Knot Resolver before 6.4.1 allows remote code execution via a heap-based buffer overflow… CVSS 3.1HIGH 8.1
- TI-2021-08533 BIRD through 2.0.7 does not provide functionality for password authentication of BGP… CVSS 3.1MEDIUM 6.8
- TI-2026-103927 Infinite loop in Knot Resolver DNSKEY validation allows denial of service CVSS 4.0HIGH 8.7
- TI-2021-02344 Foris before 101.1.1, as used in Turris OS, lacks certain HTML escaping in the login template. CVSS 3.1CRITICAL 9.8
- TI-2020-10072 Knot Resolver before 5.1.1 allows traffic amplification via a crafted DNS answer from an… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-144473 · CVE Program
- CVE-2026-144473 · NVD
- GHSA-5j8m-x5fx-gmgw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences