{"id":"CVE-2021-25282","aliases":["CVE-2021-25282","GHSA-76x4-x3p6-rpr9","PYSEC-2021-51"],"related":[],"kind":"vulnerability","state":"published","title":"SaltStack Salt Directory Traversal vulnerability","summary":"An issue was discovered in through SaltStack Salt before 3002.5. The salt.wheel.pillar_roots.write method is vulnerable to directory traversal.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in through SaltStack Salt before 3002.5. The salt.wheel.pillar_roots.write method is vulnerable to directory traversal.","source":"cvelist"},{"lang":"en","text":"An issue was discovered in through SaltStack Salt before 3002.5. The `salt.wheel.pillar_roots.write` method is vulnerable to directory traversal.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se detectó un problema por medio de SaltStack Salt versiones anteriores a 3002.5.&#xa0;El método salt.wheel.pillar_roots.write es vulnerable a un salto de directorios","source":"nvd"}],"published":"2021-02-27T00:00:00.000Z","modified":"2026-06-17T03:41:45.747Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2015.8.13"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2016.3.0","status":"affected","fixed":"2016.11.5"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2016.11.7","status":"affected","fixed":"2016.11.10"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2017.5.0","status":"affected","fixed":"2017.7.8"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2018.2.0","status":"affected","lastAffected":"2018.3.5"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2019.2.0","status":"affected","fixed":"2019.2.8"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3000","status":"affected","fixed":"3000.7"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3001","status":"affected","fixed":"3001.5"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3002","status":"affected","fixed":"3002.3"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2015.8.10"},{"status":"affected","introduced":"2015.8.11","fixed":"2015.8.13"},{"status":"affected","introduced":"2016.3.0","fixed":"2016.3.4"},{"status":"affected","introduced":"2016.3.5","fixed":"2016.3.6"},{"status":"affected","introduced":"2016.3.7","fixed":"2016.3.8"},{"status":"affected","introduced":"2016.3.9","fixed":"2016.11.3"},{"status":"affected","introduced":"2016.11.4","fixed":"2016.11.5"},{"status":"affected","introduced":"2016.11.7","fixed":"2016.11.10"},{"status":"affected","introduced":"2017.5.0","fixed":"2017.7.8"},{"status":"affected","introduced":"2018.2.0","lastAffected":"2018.3.5"},{"status":"affected","introduced":"2019.2.0","fixed":"2019.2.5"},{"status":"affected","introduced":"2019.2.6","fixed":"2019.2.8"},{"status":"affected","introduced":"3000","fixed":"3000.6"},{"status":"affected","introduced":"3001","fixed":"3001.4"},{"status":"affected","introduced":"3002","fixed":"3002.5"}],"vendor":"saltstack","product":"salt","cpe":"cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"32"},{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2015.8.10"},{"type":"ecosystem","introduced":"2015.8.11","status":"affected","fixed":"2015.8.13"},{"type":"ecosystem","introduced":"2016.3.0","status":"affected","fixed":"2016.3.4"},{"type":"ecosystem","introduced":"2016.3.5","status":"affected","fixed":"2016.3.6"},{"type":"ecosystem","introduced":"2016.3.7","status":"affected","fixed":"2016.3.8"},{"type":"ecosystem","introduced":"2016.11.0","status":"affected","fixed":"2016.11.3"},{"type":"ecosystem","introduced":"2016.11.4","status":"affected","fixed":"2016.11.5"},{"type":"ecosystem","introduced":"2016.11.7","status":"affected","fixed":"2016.11.10"},{"type":"ecosystem","introduced":"2017.7.0","status":"affected","fixed":"2017.7.8"},{"type":"ecosystem","introduced":"2018.3.0rc1","status":"affected","fixed":"2019.2.0rc1"},{"type":"ecosystem","introduced":"2019.2.0","status":"affected","fixed":"2019.2.5"},{"type":"ecosystem","introduced":"2019.2.6","status":"affected","fixed":"2019.2.8"},{"type":"ecosystem","introduced":"3000","status":"affected","fixed":"3000.6"},{"type":"ecosystem","introduced":"3001","status":"affected","fixed":"3001.4"},{"type":"ecosystem","introduced":"3002","status":"affected","fixed":"3002.5"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"pysec"}],"references":[{"url":"https://github.com/saltstack/salt/releases","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/","tags":["mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/","tags":["mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/","tags":["mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202103-01","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://packetstormsecurity.com/files/162058/SaltStack-Salt-API-Unauthenticated-Remote-Command-Execution.html","tags":["exploit","third-party-advisory","vdb-entry","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-5011","tags":["third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00000.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.gentoo.org/glsa/202310-22","tags":["third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25282","tags":["advisory"],"sources":["ghsa"]},{"url":"https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.3.rst#L31","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.5.rst#L31","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.7.rst#L31","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/saltstack/salt","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-51.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/","tags":["web"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-76x4-x3p6-rpr9","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25282","url":"https://www.cve.org/CVERecord?id=CVE-2021-25282","licence":"CVE Terms of Use","modified":"2024-08-03T19:56:11.073Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-76x4-x3p6-rpr9","url":"https://github.com/advisories/GHSA-76x4-x3p6-rpr9","licence":"CC-BY-4.0","modified":"2024-10-26T23:18:29.718Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25282","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25282","licence":"Public domain","modified":"2026-06-17T03:41:45.747Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-51","url":"https://osv.dev/vulnerability/PYSEC-2021-51","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:38.666Z"}],"updatedAt":"2026-11-25T22:58:00.093Z","epss":{"score":0.9263,"percentile":0.99889,"date":"2026-11-29T12:00:22.000Z"}}