Skip to content

Salt's file contents overwrite the VirtKey class

Moderate severity GitHub Reviewed Published Jun 13, 2025 to the GitHub Advisory Database • Updated Jun 17, 2025

Package

pip salt (pip)

Affected versions

>= 3007.0rc1, < 3007.4
>= 3006.0rc1, < 3006.12

Patched versions

3007.4
3006.12

Description

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.

References

Published by the National Vulnerability Database Jun 13, 2025
Published to the GitHub Advisory Database Jun 13, 2025
Reviewed Jun 13, 2025
Last updated Jun 17, 2025

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
High
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(4th percentile)

CVE ID

CVE-2025-22241

GHSA ID

GHSA-7f3f-x5f5-79gw

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.