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…
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
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- CZ.NIC
- Product
- Knot DNS
- CVSS v3.1
- 7.0 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-59
- Exposure class
- Edge / VPN / firewall
- NVD status
- Received
Why it ranks 37 (Notable)
- CVSS v3.1 7.0 high
- Exposed product class: edge / VPN / firewall
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.