CVE-2020-28935

Summary

CVECVE-2020-28935
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-12-07 22:15:00 UTC
Updated2023-03-29 15:15:00 UTC
DescriptionNLnet 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.

Risk And Classification

Problem Types: CWE-59

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Application Nlnetlabs Name Server Daemon All All All All
Application Nlnetlabs Name Server Daemon All All All All
Application Nlnetlabs Unbound All All All All
Application Nlnetlabs Unbound All All All All

References

ReferenceSourceLinkTags
www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt CONFIRM www.nlnetlabs.nl Vendor Advisory
[SECURITY] [DLA 2556-1] unbound1.9 security update MLIST lists.debian.org
NSD: Symbolic link traversal (GLSA 202101-38) — Gentoo security GENTOO security.gentoo.org Third Party Advisory
[SECURITY] [DLA 3371-1] unbound security update MLIST lists.debian.org
www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt CONFIRM www.nlnetlabs.nl Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: We would like to thank Mason Loring Bliss for bringing the issue to our attention.

Legacy QID Mappings

  • 159223 Oracle Enterprise Linux Security Update for unbound (ELSA-2021-1853)
  • 181641 Debian Security Update for unbound (DLA 3371-1)
  • 198356 Ubuntu Security Notification for Unbound vulnerabilities (USN-4938-1)
  • 239293 Red Hat Update for unbound (RHSA-2021:1853)
  • 240098 Red Hat Update for unbound (RHSA-2022:0632)
  • 352454 Amazon Linux Security Advisory for unbound: ALAS2-2021-1683
  • 500452 Alpine Linux Security Update for nsd
  • 504218 Alpine Linux Security Update for nsd
  • 670210 EulerOS Security Update for unbound (EulerOS-SA-2021-1709)
  • 670218 EulerOS Security Update for unbound (EulerOS-SA-2021-1857)
  • 670678 EulerOS Security Update for unbound (EulerOS-SA-2021-2436)
  • 690392 Free Berkeley Software Distribution (FreeBSD) Security Update for unbound/nsd (388ebb5b-3c95-11eb-929d-d4c9ef517024)
  • 750496 OpenSUSE Security Update for nsd (openSUSE-SU-2020:2222-1)
  • 750497 OpenSUSE Security Update for nsd (openSUSE-SU-2020:2222-1)
  • 751647 SUSE Enterprise Linux Security Update for unbound (SUSE-SU-2022:0176-1)
  • 751664 OpenSUSE Security Update for unbound (openSUSE-SU-2022:0176-1)
  • 751682 SUSE Enterprise Linux Security Update for unbound (SUSE-SU-2022:0301-1)
  • 900237 CBL-Mariner Linux Security Update for unbound 1.10.0
  • 901823 Common Base Linux Mariner (CBL-Mariner) Security Update for unbound (6931-1)
  • 903302 Common Base Linux Mariner (CBL-Mariner) Security Update for unbound (3654)
  • 940041 AlmaLinux Security Update for unbound (ALSA-2021:1853)
  • 960747 Rocky Linux Security Update for unbound (RLSA-2021:1853)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report