{"schema_version":"1.7.3","id":"GHSA-7f3f-x5f5-79gw","published":"2025-06-13T09:30:33Z","modified":"2026-07-07T17:57:27.927992496Z","aliases":["CVE-2025-22241","PYSEC-2026-1895"],"summary":"Salt's file contents overwrite the VirtKey class","details":"File contents overwrite the VirtKey class is called when “on-demand pillar” data is requested and uses un-validated input to create paths to the “pki directory”. The functionality is used to auto-accept Minion authentication keys based on a pre-placed “authorization file” at a specific location and is present in the default configuration.","affected":[{"package":{"name":"salt","ecosystem":"PyPI","purl":"pkg:pypi/salt"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3007.0rc1"},{"fixed":"3007.4"}]}],"versions":["3007.0","3007.0rc1","3007.1","3007.2","3007.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-7f3f-x5f5-79gw/GHSA-7f3f-x5f5-79gw.json"}},{"package":{"name":"salt","ecosystem":"PyPI","purl":"pkg:pypi/salt"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3006.0rc1"},{"fixed":"3006.12"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-7f3f-x5f5-79gw/GHSA-7f3f-x5f5-79gw.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22241"},{"type":"WEB","url":"https://github.com/saltstack/salt/commit/9445f496fed61b15dc4364818007e5b765b0746f"},{"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"}],"database_specific":{"cwe_ids":["CWE-22","CWE-73"],"github_reviewed":true,"github_reviewed_at":"2025-06-13T21:57:13Z","nvd_published_at":"2025-06-13T07:15:21Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N"}]}