{"id":"CVE-2025-22240","aliases":["CVE-2025-22240","GHSA-xh32-3m67-qjgf","PYSEC-2026-1903"],"related":[],"kind":"vulnerability","state":"published","title":"CVE-2025-22240 salt advisory","summary":"Arbitrary directory creation or file deletion. In the find_file method of the GitFS class, a path is created using os.path.join using unvalidated input from the “tgt_env” variable. This can be exploited by an attacker to delete any file on the Master's process has permissions to.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Arbitrary directory creation or file deletion. In the find_file method of the GitFS class, a path is created using os.path.join using unvalidated input from the “tgt_env” variable. This can be exploited by an attacker to delete any file on the Master's process has permissions to.","source":"cvelist"},{"lang":"es","text":"Creación arbitraria de directorios o eliminación de archivos. En el método find_file de la clase GitFS, se crea una ruta mediante os.path.join con una entrada no validada de la variable \"tgt_env\". Un atacante puede aprovechar esto para eliminar cualquier archivo del proceso maestro al que tenga acceso.","source":"nvd"}],"published":"2025-06-13T07:03:35.139Z","modified":"2026-07-07T17:57:04.265Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"lts","introduced":"3006.x","fixed":"3006.12","status":"affected"},{"type":"sts","introduced":"3007.x","fixed":"3007.4","status":"affected"}],"vendor":"VMware","product":"SALT","package":"Salt","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3007.0rc1","status":"affected","fixed":"3007.4"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3006.0rc1","status":"affected","fixed":"3006.12"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3006.0rc1","status":"affected","fixed":"3006.12"},{"type":"ecosystem","introduced":"3007.0rc1","status":"affected","fixed":"3007.4"}],"ecosystem":"PyPI","package":"salt","purl":"pkg:pypi/salt","source":"pysec"}],"references":[{"url":"https://docs.saltproject.io/en/3006/topics/releases/3006.12.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://docs.saltproject.io/en/3007/topics/releases/3007.4.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22240","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/saltstack/salt/commit/f7c28ffbf18dbf693a15b1ba9493918de3e88cf3","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/saltstack/salt","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/salt","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-xh32-3m67-qjgf","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-06-13T13:40:39.603Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22240","url":"https://www.cve.org/CVERecord?id=CVE-2025-22240","licence":"CVE Terms of Use","modified":"2025-06-13T13:42:42.561Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xh32-3m67-qjgf","url":"https://github.com/advisories/GHSA-xh32-3m67-qjgf","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:04.265Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22240","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22240","licence":"Public domain","modified":"2026-06-17T08:45:50.833Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1903","url":"https://osv.dev/vulnerability/PYSEC-2026-1903","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:09.555Z"}],"updatedAt":"2026-11-25T22:58:59.194Z","epss":{"score":0.00249,"percentile":0.09805,"date":"2026-11-30T12:00:22.000Z"}}