CVE-2022-22967: Salt Salt's PAM Auth Fails To Vulnerability

HIGH
Advisory Identifier: GHSA-fpxm-fprw-6hxj
CVSS 7.5
CWE-863
Published
Advisory Summary

CVE-2022-22967 is a HIGH (CVSS 7.5) salt's pam auth fails to vulnerability (CWE-863: Incorrect Authorization) affecting Salt libraries in the PyPI ecosystem. The issue involves salt's pam auth fails to reject locked accounts. Remediation is available by upgrading affected packages to version 3002.9, 3003.5, 3004.2.

CVE-2022-22967 at a Glance

CVE Identifier CVE-2022-22967
GHSA Identifier GHSA-fpxm-fprw-6hxj
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-863: Incorrect Authorization
Affected Product Salt
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-22967

To remediate this vulnerability, upgrade all affected Salt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

salt fixed: 3002.9
pip install salt>=3002.9
salt fixed: 3003.5
pip install salt>=3003.5
salt fixed: 3004.2
pip install salt>=3004.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show salt

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-22967, inspect your installed packages using pip:

pip show salt

Analyze the terminal output to locate any version of Salt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3002.9), your application is affected.

Note: The pip show salt command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Salt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in SaltStack Salt in versions before 3002.9, 3003.5, 3004.2. PAM auth fails to reject locked accounts, which allows a previously authorized user whose account is locked still run Salt commands when their account is locked. This affects both local shell accounts with an active session and salt-api users that authenticate via PAM eauth.

CVE-2022-22967 Affected Salt Versions

3 component(s)
Fixed Versions:
3002.93003.53004.2
Product / Package Ecosystem Affected Versions Fixed Version
salt
PyPI
< 3002.9
3002.9
salt
PyPI
≥ 3003.0
< 3003.5
3003.5
salt
PyPI
≥ 3004.0
< 3004.2
3004.2

References

Frequently Asked Questions

What is CVE-2022-22967?
CVE-2022-22967 is a security vulnerability in Salt involving Salt's PAM auth fails to reject locked accounts under CWE-863: Incorrect Authorization.
Which Salt versions are affected?
Affected versions include releases prior to 3002.9, 3003.5, 3004.2 across affected packages: salt.
What version fixes CVE-2022-22967?
Upgrading to 3002.9, 3003.5, 3004.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is salt affected?
Yes, salt is affected in releases prior to 3002.9, 3003.5, 3004.2. Upgrade your dependency to 3002.9, 3003.5, 3004.2 or later.
What is the CVSS score of CVE-2022-22967?
CVE-2022-22967 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-22967?
CVE-2022-22967 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check PyPI dependencies for CVE-2022-22967?
Run the dependency tree command: 'pip show salt'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fpxm-fprw-6hxj",
  "modified" : "2024-10-26T22:51:47Z",
  "published" : "2022-06-25T07:21:19Z",
  "aliases" : [ "CVE-2022-22967" ],
  "summary" : "Salt's PAM auth fails to reject locked accounts",
  "details" : "An issue was discovered in SaltStack Salt in versions before 3002.9, 3003.5, 3004.2. PAM auth fails to reject locked accounts, which allows a previously authorized user whose account is locked still run Salt commands when their account is locked. This affects both local shell accounts with an active session and salt-api users that authenticate via PAM eauth.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "salt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3002.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "salt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3003.0"
      }, {
        "fixed" : "3003.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "salt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3004.0"
      }, {
        "fixed" : "3004.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-22967"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-fpxm-fprw-6hxj"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2022-210.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/saltstack/salt"
  }, {
    "type" : "WEB",
    "url" : "https://repo.saltproject.io"
  }, {
    "type" : "WEB",
    "url" : "https://saltproject.io/security_announcements/salt-security-advisory-release-june-21st-2022/,"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/202310-22"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-25T07:21:19Z",
    "nvd_published_at" : "2022-06-23T17:15:00Z"
  }
}