Read the docs

Link following in Knot DNS lets local users escalate to root

Priority MEDIUM 47CWE-59Published · Updated

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

Fix Fixed Knot DNS (CZ.NIC): 3.5.9

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
CZ.NICKnot DNS3.4.1 to before 3.5.9; 3.6.03.5.9Patch availableCNA
  • Knot DNS VendorCZ.NIC Affected 3.4.1 to before 3.5.9; 3.6.0 Fixed in 3.5.9 Patch available CNA

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

  1. 2026-12-03 Threatist record created from CVE-2026-144473
  2. 2026-12-04 Alias added: GHSA-5j8m-x5fx-gmgw

References

  • 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
See all 22 →

Sources