GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

PYSEC-2026-1903

Vulnerability from pysec - Published: 2026-07-07 16:02 - Updated: 2026-07-07 17:25
VLAI
Details

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.

Impacted products
Name purl
salt pkg:pypi/salt

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "salt",
        "purl": "pkg:pypi/salt"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3006.0rc1"
            },
            {
              "fixed": "3006.12"
            },
            {
              "introduced": "3007.0rc1"
            },
            {
              "fixed": "3007.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "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"
      ]
    }
  ],
  "aliases": [
    "CVE-2025-22240",
    "GHSA-xh32-3m67-qjgf"
  ],
  "details": "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 \u201ctgt_env\u201d variable. This can be exploited by an attacker to delete any file on the Master\u0027s process has permissions to.",
  "id": "PYSEC-2026-1903",
  "modified": "2026-07-07T17:25:21.390713Z",
  "published": "2026-07-07T16:02:54.851955Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-22240"
    },
    {
      "type": "WEB",
      "url": "https://github.com/saltstack/salt/commit/f7c28ffbf18dbf693a15b1ba9493918de3e88cf3"
    },
    {
      "type": "WEB",
      "url": "https://docs.saltproject.io/en/3006/topics/releases/3006.12.html"
    },
    {
      "type": "WEB",
      "url": "https://docs.saltproject.io/en/3007/topics/releases/3007.4.html"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/saltstack/salt"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/salt"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-xh32-3m67-qjgf"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Salt allows arbitrary directory creation or file deletion"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…