All reports
Medium

Salt allows arbitrary directory creation or file deletion

Affected versions

Version ranges need review.

PyPIsalt
Affected versions
>= 3006.0rc1, < 3006.12
Fixed version
3006.12
PyPIsalt
Affected versions
>=3006.0rc1 <3006.12 || >=3007.0rc1 <3007.4 || =3006.0 || =3006.0rc1 || =3006.0rc2 || =3006.0rc3 || =3006.1 || =3006.10 || =3006.11 || =3006.2 || =3006.3 || =3006.4 || =3006.5 || =3006.6 || =3006.7 || =3006.8 || =3006.9 || =3007.0 || =3007.0rc1 || =3007.1 || =3007.2 || =3007.3
Fixed version
3006.12 · 3007.4
PyPIsalt
Affected versions
>= 3007.0rc1, < 3007.4
Fixed version
3007.4

Exploitation

CVE-2025-22240

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-23

Description

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.

Links