CVE-2020-28935
Fixed in a distro release EPSS <1%
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.
Products: NLnet Labs unbound, NLnet Labs NSD
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.12 | nsd | 4.3.4-r0 |
| Alpine 3.13 | nsd | 4.3.4-r0 |
| Alpine 3.14 | nsd | 4.3.4-r0 |
| Alpine 3.15 | nsd | 4.3.4-r0 |
| Alpine 3.16 | nsd | 4.3.4-r0 |
| Alpine 3.17 | nsd | 4.3.4-r0 |
| Alpine 3.18 | nsd | 4.3.4-r0 |
| Alpine 3.19 | nsd | 4.3.4-r0 |
| Alpine 3.20 | nsd | 4.3.4-r0 |
| Alpine 3.21 | nsd | 4.3.4-r0 |
| Alpine 3.22 | nsd | 4.3.4-r0 |
| Alpine 3.23 | nsd | 4.3.4-r0 |
| Alpine 3.24 | nsd | 4.3.4-r0 |
| Amazon Linux 2 | python2-unbound | 1.7.3-15.amzn2.0.1 |
| Amazon Linux 2 | python3-unbound | 1.7.3-15.amzn2.0.1 |
| Amazon Linux 2 | unbound | 1.7.3-15.amzn2.0.1 |
| Amazon Linux 2 | unbound-devel | 1.7.3-15.amzn2.0.1 |
| Amazon Linux 2 | unbound-libs | 1.7.3-15.amzn2.0.1 |
| Arch Linux | nsd | 4.3.4-1 |
| Arch Linux | unbound | 1.13.0-1 |
| Debian 10 | unbound | 1.9.0-2+deb10u3 |
| Debian 12 | nsd | 4.3.4-1 |
| Debian 12 | unbound | 1.13.0-1 |
| Debian 13 | nsd | 4.3.4-1 |
| Debian 13 | unbound | 1.13.0-1 |
| Debian 14 | nsd | 4.3.4-1 |
| Debian 14 | unbound | 1.13.0-1 |
| Debian 9 | unbound1.9 | 1.9.0-2+deb10u2~deb9u1 |
| Red Hat Enterprise Linux 8 | python3-unbound | 0:1.7.3-15.el8 |
| Red Hat Enterprise Linux 8 | python3-unbound-debuginfo | 0:1.7.3-15.el8 |
| Red Hat Enterprise Linux 8 | unbound | 0:1.7.3-15.el8 |
| Red Hat Enterprise Linux 8 | unbound-debuginfo | 0:1.7.3-15.el8 |
| Red Hat Enterprise Linux 8 | unbound-debugsource | 0:1.7.3-15.el8 |
| Red Hat Enterprise Linux 8 | unbound-devel | 0:1.7.3-15.el8 |
| Red Hat Enterprise Linux 8 | unbound-libs | 0:1.7.3-15.el8 |
| Red Hat Enterprise Linux 8 | unbound-libs-debuginfo | 0:1.7.3-15.el8 |
| Red Hat rhel eus 8.2 | python3-unbound | 0:1.7.3-12.el8_2 |
| Red Hat rhel eus 8.2 | python3-unbound-debuginfo | 0:1.7.3-12.el8_2 |
| Red Hat rhel eus 8.2 | unbound | 0:1.7.3-12.el8_2 |
| Red Hat rhel eus 8.2 | unbound-debuginfo | 0:1.7.3-12.el8_2 |
| Red Hat rhel eus 8.2 | unbound-debugsource | 0:1.7.3-12.el8_2 |
| Red Hat rhel eus 8.2 | unbound-devel | 0:1.7.3-12.el8_2 |
| Red Hat rhel eus 8.2 | unbound-libs | 0:1.7.3-12.el8_2 |
| Red Hat rhel eus 8.2 | unbound-libs-debuginfo | 0:1.7.3-12.el8_2 |
| Rocky Linux 8 | unbound | 0:1.7.3-15.el8 |
| SUSE Enterprise Storage 6 | unbound | 1.6.8-10.6.1 |
| SUSE Enterprise Storage 7 | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | unbound | 1.6.8-3.9.1 |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | unbound | 1.6.8-3.9.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise Real Time 15 SP2 | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise Server 15 SP1-BCL | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise Server 15 SP2-BCL | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise Server 15-LTSS | unbound | 1.6.8-3.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 | unbound | 1.6.8-3.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | unbound | 1.6.8-10.6.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | unbound | 1.6.8-10.6.1 |
| SUSE Manager Proxy 4.1 | unbound | 1.6.8-10.6.1 |
| SUSE Manager Retail Branch Server 4.1 | unbound | 1.6.8-10.6.1 |
| SUSE Manager Server 4.1 | unbound | 1.6.8-10.6.1 |
| SUSE Package Hub 12 | nsd | 4.3.4-bp152.2.3.1 |
| SUSE Package Hub 15 SP1 | nsd | 4.3.4-bp152.2.3.1 |
| SUSE Package Hub 15 SP2 | nsd | 4.3.4-bp152.2.3.1 |
| Ubuntu 18.04 LTS | unbound | 1.6.7-1ubuntu2.4 |
| Ubuntu 20.04 LTS | unbound | 1.9.4-2ubuntu1.2 |
| Ubuntu Pro 14.04 LTS | unbound | no fix |
| Ubuntu Pro 16.04 LTS | unbound | no fix |
| openSUSE Leap 15.1 | nsd | 4.3.4-bp152.2.3.1 |
| openSUSE Leap 15.2 | nsd | 4.3.4-bp152.2.3.1 |
| openSUSE Leap 15.3 | unbound | 1.6.8-10.6.1 |
| openSUSE Tumbleweed | nsd | 4.3.7-1.2 |
| openSUSE Tumbleweed | sslh | 2.2.3-1.1 |
| openSUSE Tumbleweed | unbound | 1.13.2-1.2 |