{"schemaVersion":3,"id":"CVE-2021-23239","aliases":["ALPINE-CVE-2021-23239","UBUNTU-CVE-2021-23239","DEBIAN-CVE-2021-23239","DLA-3181-1"],"status":"published","duplicateOf":null,"title":null,"description":"The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.","dates":{"published":"2021-01-12T00:00:00.000Z","modified":"2024-08-03T19:05:55.298Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":2.5,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":2.5,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":2.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":2.5,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":2.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":2.5,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":2.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":2.5,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":1.9,"severity":"low","vector":"AV:L/AC:M/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01042,"percentile":0.63554,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.01299999999999999,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01029},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01042,"percentile":0.63554}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01029,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01042,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01042,"percentile":0.63554}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_DB98FF0624C46AF8","name":"Exploit Reference (bugzilla.suse.com)","source":"reference","url":"https://bugzilla.suse.com/show_bug.cgi?id=CVE-2021-23239","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"alpine","product":"sudo","name":"sudo","label":"sudo","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/sudo","purlType":"apk","versions":[{"text":"≥ 1.9.0, < 1.9.5p2-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.9.0, < 1.9.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.9.0, < 1.9.5p2-r0 | ≥ 1.9.0, < 1.9.5-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"sudo","name":"sudo","label":"sudo","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/sudo","purlType":"deb","versions":[{"text":"< 1.9.5-1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.8.27-1+deb10u4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.5-1 | < 1.8.27-1+deb10u4","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"sudo","name":"sudo","label":"sudo","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/sudo","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.8.16-0ubuntu1.10","noFixRecorded":false,"fixedIn":null},{"text":"< 1.8.21p2-3ubuntu1.4","noFixRecorded":false,"fixedIn":null},{"text":"< 1.8.31-1ubuntu1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.8.16-0ubuntu1.10 | < 1.8.21p2-3ubuntu1.4 | < 1.8.31-1ubuntu1.2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"32","noFixRecorded":false,"fixedIn":null},{"text":"33","noFixRecorded":false,"fixedIn":null}],"versionsText":"32 | 33","eol":{"isEol":true,"eolDate":"2021-05-25T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"32","label":"32","eolFrom":"2021-05-25T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"netapp","product":"cloud_backup","name":"cloud backup","label":"cloud_backup","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/cloud_backup"},{"vendor":"netapp","product":"hci_management_node","name":"hci management node","label":"hci_management_node","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/hci_management_node"},{"vendor":"netapp","product":"solidfire","name":"solidfire","label":"solidfire","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/solidfire"},{"vendor":"sudo_project","product":"sudo","name":"sudo","label":"sudo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.8.32","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.9.0, < 1.9.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.32 | ≥ 1.9.0, < 1.9.5","eol":null,"hubHref":"/vendor/sudo_project/sudo"}],"affectedCount":9,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=CVE-2021-23239","label":"bugzilla.suse.com/show_bug.cgi?id=CVE-2021-23239","hostname":"bugzilla.suse.com","tags":["Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://www.sudo.ws/stable.html#1.9.5","label":"www.sudo.ws/stable.html","hostname":"www.sudo.ws","tags":["Release Notes","Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EE42Y35SMJOLONAIBNYNFC7J44UUZ2Y6/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GMY4VSSBIND7VAYSN6T7XIWJRWG4GBB3/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/202101-33","label":"security.gentoo.org/glsa/202101-33","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210129-0010/","label":"security.netapp.com/advisory/ntap-20210129-0010/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00007.html","label":"lists.debian.org/debian-lts-announce/2022/11/msg00007.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-23239","label":"security.alpinelinux.org/vuln/CVE-2021-23239","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-23239","label":"ubuntu.com/security/CVE-2021-23239","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2021/01/11/2","label":"www.openwall.com/lists/oss-security/2021/01/11/2","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4705-1","label":"ubuntu.com/security/notices/USN-4705-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23239","label":"www.cve.org/CVERecord?id=CVE-2021-23239","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-23239","label":"security-tracker.debian.org/tracker/CVE-2021-23239","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23239","label":"nvd.nist.gov/vuln/detail/CVE-2021-23239","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2021-0042","OPENSUSE-SU-2021:0169-1","OPENSUSE-SU-2021:0170-1","OPENSUSE-SU-2024:11413-1","RHSA-2021:1723","SUSE-SU-2021:0225-1","SUSE-SU-2021:0226-1","SUSE-SU-2021:0227-1","SUSE-SU-2021:0232-1","USN-4705-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0169-1","OPENSUSE-SU-2021:0170-1","OPENSUSE-SU-2024:11413-1","SUSE-SU-2021:0225-1","SUSE-SU-2021:0226-1","SUSE-SU-2021:0227-1","SUSE-SU-2021:0232-1","USN-4705-1"]},"timeline":[{"kind":"published","date":"2021-01-12T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T19:05:55.298Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":20,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:10:30.075Z","stale":false,"partial":false}}