CVE-2020-28935Local symlink attack in Unbound and NSD
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.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | unbound | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | unbound | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | unbound | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | unbound | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | unbound | Fixed | 1.9.4-2ubuntu1.2 | UBUNTU-CVE-2020-28935 |
| Ubuntu 18.04 | unbound | Fixed | 1.6.7-1ubuntu2.4 | UBUNTU-CVE-2020-28935 |
| Ubuntu 16.04 | unbound | Fix pending | UBUNTU-CVE-2020-28935 | |
| Ubuntu 14.04 | unbound | Fix pending | UBUNTU-CVE-2020-28935 | |
| Debian 14 | nsd | Fixed | 4.3.4-1 | DEBIAN-CVE-2020-28935 |
| Debian 14 | unbound | Fixed | 1.13.0-1 | DEBIAN-CVE-2020-28935 |
| Debian 13 | nsd | Fixed | 4.3.4-1 | DEBIAN-CVE-2020-28935 |
| Debian 13 | unbound | Fixed | 1.13.0-1 | DEBIAN-CVE-2020-28935 |
| Debian 12 | nsd | Fixed | 4.3.4-1 | DEBIAN-CVE-2020-28935 |
| Debian 12 | unbound | Fixed | 1.13.0-1 | DEBIAN-CVE-2020-28935 |
| Red Hat Enterprise Linux 9 | python3-unbound | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound-dracut | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-unbound | Fixed | 0:1.7.3-15.el8 | RHSA-2021:1853 |
| Red Hat Enterprise Linux 8 | unbound | Fixed | 0:1.7.3-15.el8 | RHSA-2021:1853 |
| Red Hat Enterprise Linux 8 | unbound-devel | Fixed | 0:1.7.3-15.el8 | RHSA-2021:1853 |
| Red Hat Enterprise Linux 8 | unbound-libs | Fixed | 0:1.7.3-15.el8 | RHSA-2021:1853 |
| Red Hat Enterprise Linux 7 | unbound | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-python | Will not fix Out of support scope | ||
| Rocky Linux 8 | unbound | Fixed | 0:1.7.3-15.el8 | RLSA-2021:1853 |
| Alpine Linux 3.24 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.23 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.22 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.21 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.20 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.19 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.18 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.17 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.16 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.15 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.14 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.13 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
| Alpine Linux 3.12 | nsd | Fixed | 4.3.4-r0 | ALPINE-CVE-2020-28935 |
What the vendor says
As published in the CVE record by NLnet Labs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NLnet Labs Unbound: affected: <= 1.12.0
- NLnet Labs NSD: affected: <= 4.3.3
Vendor advisories:
- https://security.gentoo.org/glsa/202101-38 (vendor-advisory)
References
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt
- https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt
- https://security.gentoo.org/glsa/202101-38
- https://lists.debian.org/debian-lts-announce/2021/02/msg00017.html
- https://lists.debian.org/debian-lts-announce/2023/03/msg00024.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.