CVEfocus › CVE database › CVE-2020-28935

CVE-2020-28935Local symlink attack in Unbound and NSD

CVSS 5.5 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2020-12-07Updated 2024-09-16Assigner: NLnet Labs

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.

CWE-59

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

26Fixed
2Fix pending
8Will not fix
9Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04unboundNot affected
vulnerable_code_not_present
Ubuntu 25.10unboundNot affected
vulnerable_code_not_present
Ubuntu 24.04unboundNot affected
vulnerable_code_not_present
Ubuntu 22.04unboundNot affected
vulnerable_code_not_present
Ubuntu 20.04unboundFixed1.9.4-2ubuntu1.2UBUNTU-CVE-2020-28935
Ubuntu 18.04unboundFixed1.6.7-1ubuntu2.4UBUNTU-CVE-2020-28935
Ubuntu 16.04unboundFix pendingUBUNTU-CVE-2020-28935
Ubuntu 14.04unboundFix pendingUBUNTU-CVE-2020-28935
Debian 14nsdFixed4.3.4-1DEBIAN-CVE-2020-28935
Debian 14unboundFixed1.13.0-1DEBIAN-CVE-2020-28935
Debian 13nsdFixed4.3.4-1DEBIAN-CVE-2020-28935
Debian 13unboundFixed1.13.0-1DEBIAN-CVE-2020-28935
Debian 12nsdFixed4.3.4-1DEBIAN-CVE-2020-28935
Debian 12unboundFixed1.13.0-1DEBIAN-CVE-2020-28935
Red Hat Enterprise Linux 9python3-unboundNot affected
Red Hat Enterprise Linux 9unboundNot affected
Red Hat Enterprise Linux 9unbound-develNot affected
Red Hat Enterprise Linux 9unbound-dracutNot affected
Red Hat Enterprise Linux 9unbound-libsNot affected
Red Hat Enterprise Linux 8python3-unboundFixed0:1.7.3-15.el8RHSA-2021:1853
Red Hat Enterprise Linux 8unboundFixed0:1.7.3-15.el8RHSA-2021:1853
Red Hat Enterprise Linux 8unbound-develFixed0:1.7.3-15.el8RHSA-2021:1853
Red Hat Enterprise Linux 8unbound-libsFixed0:1.7.3-15.el8RHSA-2021:1853
Red Hat Enterprise Linux 7unboundWill not fix
Out of support scope
Red Hat Enterprise Linux 7unbound-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7unbound-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7unbound-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6unboundWill not fix
Out of support scope
Red Hat Enterprise Linux 6unbound-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6unbound-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6unbound-pythonWill not fix
Out of support scope
Rocky Linux 8unboundFixed0:1.7.3-15.el8RLSA-2021:1853
Alpine Linux 3.24nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.23nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.22nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.21nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.20nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.19nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.18nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.17nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.16nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.15nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.14nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.13nsdFixed4.3.4-r0ALPINE-CVE-2020-28935
Alpine Linux 3.12nsdFixed4.3.4-r0ALPINE-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.

Vendor advisories:

References

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.