CVE-2020-28935
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine with a low-privilege account. High risk of service disruption.
- Exploit odds
- 0.5% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.5% in the next 30 days (EPSS).
- Severity: 5.5 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.5% · EPSS, next 30 days
- Weakness
- CWE-59
- Record status
- Modified
Affected
- Nlnetlabs Name Server Daemon < 4.3.4
- Nlnetlabs Unbound < 1.13.0
- Debian Linux 9.0
Attack profile CVSS 3.1 · 5.5
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Raw vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2020-28935.md and follow it. Check whether this project is affected by CVE-2020-28935. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt
- https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt
References
- https://lists.debian.org/debian-lts-announce/2021/02/msg00017.html
- https://lists.debian.org/debian-lts-announce/2023/03/msg00024.html
- https://security.gentoo.org/glsa/202101-38
- https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt
- https://lists.debian.org/debian-lts-announce/2021/02/msg00017.html
- https://lists.debian.org/debian-lts-announce/2023/03/msg00024.html
- https://security.gentoo.org/glsa/202101-38
- https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt