CVE-2026-144473: Knot DNS 3.4.1 before 3.5.9 and 3.6.x before 3.6.1 Local Privilege Escalation via Auto-Generated TLS Key Symlink

Published Dec 3, 2026
·
Updated

Knot DNS 3.4.1 before 3.5.9 and 3.6.x before 3.6.1 contain a link following vulnerability in selfkey() in src/libknot/quic/tlscommon.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 ONOFOLLOW or OEXCL 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.

Affected Software

1 affected component
CZ.NIC Knot DNS>=3.4.1<3.5.9, >=3.6.0<3.6.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.5.9
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.6.1

Event History

Dec 3, 2026
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Affected deployments run Knot DNS 3.4.1 through before 3.5.9, or a 3.6.x release before 3.6.1, with QUIC or TLS enabled and no certificate explicitly configured. The issue also requires knotd to start as root before dropping privileges.

2

What access does an attacker need to exploit it?

An attacker needs local access that allows writing to the KASP database directory. The knot service account is an example of an account with the required access.

3

How does exploitation lead to root-level impact?

The attacker places a dangling symbolic link at the auto-generated key path. When knotd starts as root, it follows the link to create a file at an attacker-chosen location and changes that file's ownership to the configured server user, which can be leveraged for privilege escalation.

4

What configuration change can reduce exposure before an update is applied?

Configure a TLS certificate so Knot DNS does not need to auto-generate the private key. Also restrict write access to the KASP database directory to prevent untrusted local users from placing symbolic links there.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203