Skip to content
OpenAdvisories
Unscored CVE-2020-28935 EUVD-2020-21323GHSA-q92f-7cwj-w4w5

Local symlink attack in Unbound and NSD

Published Dec 7, 2020 · Updated Sep 16, 2024 · Assigned by NLnet Labs

Description

NLnet Labs Unbound, up to and including version 1.12.0, and NLnet Labs NSD, up to and including version 4.3.3, contain a local vulnerability that would allow for a local symlink attack. When writing the PID file, Unbound and NSD create the file if it is not there, or open an existing file for writing. In case the file was already present, they would follow symlinks if the file happened to be a symlink instead of a regular file. An additional chown of the file would then take place after it was written, making the user Unbound/NSD is supposed to run as the new owner of the file. If an attacker has local access to the user Unbound/NSD runs as, she could create a symlink in place of the PID file pointing to a file that she would like to erase. If then Unbound/NSD is killed and the PID file is not cleared, upon restarting with root privileges, Unbound/NSD will rewrite any file pointed at by the symlink. This is a local vulnerability that could create a Denial of Service of the system Unbound/NSD is running on. It requires an attacker having access to the limited permission user Unbound/NSD runs as and point through the symlink to a critical file on the system.

Affected products

VendorProductAffectedFixed
NLnet Labs Unbound <= 1.12.0 —
NLnet Labs NSD <= 4.3.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nsd 4.3.4-1 —
Debian 14 unbound 1.13.0-1 —
Debian 13 nsd 4.3.4-1 —
Debian 13 unbound 1.13.0-1 —
Debian 12 nsd 4.3.4-1 —
Debian 12 unbound 1.13.0-1 —
Debian 10 unbound 1.9.0-2+deb10u3 DLA-3371-1
Debian 9 unbound1.9 1.9.0-2+deb10u2~deb9u1 DLA-2556-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS unbound 1.9.4-2ubuntu1.2 USN-4938-1
Ubuntu 18.04 LTS unbound 1.6.7-1ubuntu2.4 USN-4938-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS unbound No fix yet —
Ubuntu Pro 14.04 LTS unbound No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 unbound +3 1.7.3-15.el8 RHSA-2021:1853
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS unbound +3 1.7.3-12.el8_2 RHSA-2022:0632

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 unbound 1.7.3-15.el8 RLSA-2021:1853
ReleasePackageFixed inAdvisory
SLES 15 SP3 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SLES 15 SP2 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SLES 15 SP1 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SLES 15 unbound 1.6.8-3.9.1 SUSE-SU-2022:0301-1
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP2 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SLES for SAP 15 SP1 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SLES for SAP 15 unbound 1.6.8-3.9.1 SUSE-SU-2022:0301-1
SLE Real Time 15 SP2 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-2
SLE HPC 15 SP2 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SLE HPC 15 SP1 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SLE HPC 15 unbound 1.6.8-3.9.1 SUSE-SU-2022:0301-1
SUSE Package Hub 15 SP2 nsd 4.3.4-bp152.2.3.1 openSUSE-SU-2020:2222-1
SUSE Package Hub 15 SP1 nsd 4.3.4-bp152.2.3.1 openSUSE-SU-2020:2222-1
SUSE Package Hub 12 nsd 4.3.4-bp152.2.3.1 openSUSE-SU-2020:2222-1
SUSE Manager Server 4.1 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SUSE Manager Retail Branch Server 4.1 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SUSE Manager Proxy 4.1 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SUSE Enterprise Storage 7 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
SUSE Enterprise Storage 6 unbound 1.6.8-10.6.1 SUSE-SU-2022:0176-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nsd 4.3.7-1.2 openSUSE-SU-2024:11100-1
openSUSE Tumbleweed sslh 2.2.3-1.1 openSUSE-SU-2025:15069-1
openSUSE Tumbleweed unbound 1.13.2-1.2 openSUSE-SU-2024:11005-1
openSUSE Leap 15.3 unbound 1.6.8-10.6.1 openSUSE-SU-2022:0176-1
openSUSE Leap 15.2 nsd 4.3.4-bp152.2.3.1 openSUSE-SU-2020:2222-1
openSUSE Leap 15.1 nsd 4.3.4-bp152.2.3.1 openSUSE-SU-2020:2222-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nsd 4.3.4-r0 —
Alpine v3.23 nsd 4.3.4-r0 —
Alpine v3.22 nsd 4.3.4-r0 —
Alpine v3.21 nsd 4.3.4-r0 —
Alpine v3.20 nsd 4.3.4-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nsd 4.3.4-r0 —
Alpine v3.18 nsd 4.3.4-r0 —
Alpine v3.17 nsd 4.3.4-r0 —
Alpine v3.16 nsd 4.3.4-r0 —
Alpine v3.15 nsd 4.3.4-r0 —
Alpine v3.14 nsd 4.3.4-r0 —
Alpine v3.13 nsd 4.3.4-r0 —
Alpine v3.12 nsd 4.3.4-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 unbound +4 1.7.3-15.amzn2.0.1 ALAS2-2021-1683

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) unbound 1.10.0-5 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 unbound +3 1.7.3-15.el8 ELSA-2021-1853

Advisories 16

References