{"api_version":"1","generated_at":"2026-04-23T11:34:17+00:00","cve":"CVE-2020-28935","urls":{"html":"https://cve.report/CVE-2020-28935","api":"https://cve.report/api/cve/CVE-2020-28935.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-28935","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-28935"},"summary":{"title":"CVE-2020-28935","description":"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.","state":"PUBLIC","assigner":"sep@nlnetlabs.nl","published_at":"2020-12-07 22:15:00","updated_at":"2023-03-29 15:15:00"},"problem_types":["CWE-59"],"metrics":[],"references":[{"url":"https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt","name":"https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/02/msg00017.html","name":"[debian-lts-announce] 20210212 [SECURITY] [DLA 2556-1] unbound1.9 security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2556-1] unbound1.9 security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202101-38","name":"GLSA-202101-38","refsource":"GENTOO","tags":["Third Party Advisory"],"title":"NSD: Symbolic link traversal (GLSA 202101-38) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00024.html","name":"[debian-lts-announce] 20230329 [SECURITY] [DLA 3371-1] unbound security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3371-1] unbound security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt","name":"https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-28935","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28935","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"We would like to thank Mason Loring Bliss for bringing the issue to our attention.","lang":""}],"nvd_cpes":[{"cve_year":"2020","cve_id":"28935","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"28935","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nlnetlabs","cpe5":"name_server_daemon","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"28935","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nlnetlabs","cpe5":"name_server_daemon","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"28935","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nlnetlabs","cpe5":"unbound","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"28935","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nlnetlabs","cpe5":"unbound","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-28935","qid":"159223","title":"Oracle Enterprise Linux Security Update for unbound (ELSA-2021-1853)"},{"cve":"CVE-2020-28935","qid":"181641","title":"Debian Security Update for unbound (DLA 3371-1)"},{"cve":"CVE-2020-28935","qid":"198356","title":"Ubuntu Security Notification for Unbound vulnerabilities (USN-4938-1)"},{"cve":"CVE-2020-28935","qid":"239293","title":"Red Hat Update for unbound (RHSA-2021:1853)"},{"cve":"CVE-2020-28935","qid":"240098","title":"Red Hat Update for unbound (RHSA-2022:0632)"},{"cve":"CVE-2020-28935","qid":"352454","title":"Amazon Linux Security Advisory for unbound: ALAS2-2021-1683"},{"cve":"CVE-2020-28935","qid":"500452","title":"Alpine Linux Security Update for nsd"},{"cve":"CVE-2020-28935","qid":"504218","title":"Alpine Linux Security Update for nsd"},{"cve":"CVE-2020-28935","qid":"670210","title":"EulerOS Security Update for unbound (EulerOS-SA-2021-1709)"},{"cve":"CVE-2020-28935","qid":"670218","title":"EulerOS Security Update for unbound (EulerOS-SA-2021-1857)"},{"cve":"CVE-2020-28935","qid":"670678","title":"EulerOS Security Update for unbound (EulerOS-SA-2021-2436)"},{"cve":"CVE-2020-28935","qid":"690392","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for unbound/nsd (388ebb5b-3c95-11eb-929d-d4c9ef517024)"},{"cve":"CVE-2020-28935","qid":"750496","title":"OpenSUSE Security Update for nsd (openSUSE-SU-2020:2222-1)"},{"cve":"CVE-2020-28935","qid":"750497","title":"OpenSUSE Security Update for nsd (openSUSE-SU-2020:2222-1)"},{"cve":"CVE-2020-28935","qid":"751647","title":"SUSE Enterprise Linux Security Update for unbound (SUSE-SU-2022:0176-1)"},{"cve":"CVE-2020-28935","qid":"751664","title":"OpenSUSE Security Update for unbound (openSUSE-SU-2022:0176-1)"},{"cve":"CVE-2020-28935","qid":"751682","title":"SUSE Enterprise Linux Security Update for unbound (SUSE-SU-2022:0301-1)"},{"cve":"CVE-2020-28935","qid":"900237","title":"CBL-Mariner Linux Security Update for unbound 1.10.0"},{"cve":"CVE-2020-28935","qid":"901823","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for unbound (6931-1)"},{"cve":"CVE-2020-28935","qid":"903302","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for unbound (3654)"},{"cve":"CVE-2020-28935","qid":"940041","title":"AlmaLinux Security Update for unbound (ALSA-2021:1853)"},{"cve":"CVE-2020-28935","qid":"960747","title":"Rocky Linux Security Update for unbound (RLSA-2021:1853)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"sep@nlnetlabs.nl","DATE_PUBLIC":"2020-12-01T00:00:00.000Z","ID":"CVE-2020-28935","STATE":"PUBLIC","TITLE":"Local symlink attack in Unbound and NSD"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"NLnet Labs","product":{"product_data":[{"product_name":"Unbound","version":{"version_data":[{"version_value":"<= 1.12.0"}]}},{"product_name":"NSD","version":{"version_data":[{"version_value":"<= 4.3.3"}]}}]}}]}},"credit":[{"lang":"eng","value":"We would like to thank Mason Loring Bliss for bringing the issue to our attention."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-59: Improper Link Resolution Before File Access ('Link Following')"}]}]},"references":{"reference_data":[{"refsource":"CONFIRM","name":"https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt","url":"https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt"},{"refsource":"CONFIRM","name":"https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt","url":"https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt"},{"refsource":"GENTOO","name":"GLSA-202101-38","url":"https://security.gentoo.org/glsa/202101-38"},{"refsource":"MLIST","name":"[debian-lts-announce] 20210212 [SECURITY] [DLA 2556-1] unbound1.9 security update","url":"https://lists.debian.org/debian-lts-announce/2021/02/msg00017.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230329 [SECURITY] [DLA 3371-1] unbound security update","url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00024.html"}]}},"nvd":{"publishedDate":"2020-12-07 22:15:00","lastModifiedDate":"2023-03-29 15:15:00","problem_types":["CWE-59"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:N/I:N/A:P","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":2.1},"severity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nlnetlabs:unbound:*:*:*:*:*:*:*:*","versionEndExcluding":"1.13.0","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nlnetlabs:name_server_daemon:*:*:*:*:*:*:*:*","versionEndExcluding":"4.3.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"28935","Ordinal":"191997","Title":"CVE-2020-28935","CVE":"CVE-2020-28935","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"28935","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"28935","Ordinal":"2","NoteData":"2020-12-07","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"28935","Ordinal":"3","NoteData":"2021-02-12","Type":"Other","Title":"Modified"}]}}}