Cloudanix VulnDB

CVE-2024-22231

Medium · 5.0

CVSS

5.0

EPSS

0.7%

Published

Jun 27, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in the Salt software allows attackers to create folders anywhere on the main server by tricking the system during setup.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Low
Impact
Data Tampering
Component
Application
Class
Path Traversal
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability permits a directory traversal attack during the creation of the syndic cache directory, enabling the creation of arbitrary directories on the Salt master system.

Why it matters to the business

Attackers could manipulate directory structures on the master server, potentially leading to unauthorized file system changes that disrupt operations or enable further compromise.

How an attack unfolds

An attacker with limited privileges sends a crafted request that exploits the path traversal flaw in the syndic cache directory creation process, resulting in the creation of directories outside the intended cache location on the Salt master.

How to fix it

Update the Salt project to a version that properly sanitizes directory paths during syndic cache creation.

How to confirm the fix worked

Review code changes for path sanitization in directory creation functions and test with traversal payloads.

Typical attack path

  1. Identify vulnerable Salt master with syndic enabled
  2. Craft malicious directory path in cache creation request
  3. Send request to trigger traversal
  4. Verify arbitrary directory creation

How to detect it

Examine logs for unusual directory creation attempts or paths containing traversal sequences like ../ in cache related operations.

What your security team should do

  • Apply security patches promptly
  • Monitor for unusual directory creations
  • Restrict access to Salt master

The record

Syndic cache directory creation is vulnerable to a directory traversal attack in salt project which can lead a malicious attacker to create an arbitrary directory on a Salt master.

Affected packages

Ecosystem Package Introduced Fixed
PyPI salt 0 3005.5
PyPI salt 3006.0 3006.6
Debian:10 salt 0 No fix
SUSE:EL-9:Update:Products:SaltBundle:Update saltbundlepy 0 3.10.14-1.20.1
SUSE:EL-9:Update:Products:SaltBundle:Update saltbundlepy-core 0 3.10.14-1.20.1
SUSE:EL-9:Update:Products:SaltBundle:Update saltbundlepy-lxml 0 4.9.3-1.15.2
SUSE:EL-9:Update:Products:SaltBundle:Update venv-salt-minion 0 3006.0-1.36.3
SUSE:Enterprise Storage 7.1 salt 0 3006.0-150300.53.70.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS salt 0 3006.0-150100.117.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS salt 0 3006.0-150200.118.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS salt 0 3006.0-150300.53.70.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS salt 0 3006.0-150400.8.54.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS salt 0 3006.0-150400.8.54.1
SUSE:Linux Enterprise Micro 5.1 salt 0 3006.0-150300.53.70.1
SUSE:Linux Enterprise Micro 5.2 salt 0 3006.0-150300.53.70.1
SUSE:Linux Enterprise Micro 5.3 salt 0 3006.0-150400.8.54.1
SUSE:Linux Enterprise Micro 5.4 salt 0 3006.0-150400.8.54.1
SUSE:Linux Enterprise Micro 5.5 salt 0 3006.0-150500.4.29.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 salt 0 3006.0-150500.4.29.1
SUSE:Linux Enterprise Module for Server Applications 15 SP5 salt 0 3006.0-150500.4.29.1
SUSE:Linux Enterprise Module for Transactional Server 15 SP5 salt 0 3006.0-150500.4.29.1
SUSE:Linux Enterprise Server 15 SP1-LTSS salt 0 3006.0-150100.117.1
SUSE:Linux Enterprise Server 15 SP2-LTSS salt 0 3006.0-150200.118.1
SUSE:Linux Enterprise Server 15 SP3-LTSS salt 0 3006.0-150300.53.70.1
SUSE:Linux Enterprise Server 15 SP4-LTSS salt 0 3006.0-150400.8.54.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 salt 0 3006.0-150200.118.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 salt 0 3006.0-150300.53.70.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 salt 0 3006.0-150400.8.54.1
SUSE:Manager Client Tools 12 venv-salt-minion 0 3006.0-3.52.3
SUSE:Manager Client Tools 15 venv-salt-minion 0 3006.0-150000.3.54.3
SUSE:Manager Client Tools for RHEL, Liberty and Clones 9-CLIENT-TOOLS venv-salt-minion 0 3006.0-1.36.3
SUSE:Manager Client Tools for SLE Micro 5 venv-salt-minion 0 3006.0-150000.3.54.3
SUSE:Manager Proxy 4.3 release-notes-susemanager-proxy 0 4.3.11-150400.3.79.1
SUSE:Manager Proxy 4.3 salt 0 3006.0-150400.8.54.1
SUSE:Manager Proxy Module 4.3 venv-salt-minion 0 3006.0-150000.3.54.3
SUSE:Manager Server 4.3 release-notes-susemanager 0 4.3.11-150400.3.100.1
SUSE:Manager Server 4.3 salt 0 3006.0-150400.8.54.1
SUSE:Manager Server Module 4.3 venv-salt-minion 0 3006.0-150000.3.54.3
SUSE:Manager Tools 12 venv-salt-minion 0 3006.0-3.52.3
SUSE:Manager Tools 15 venv-salt-minion 0 3006.0-150000.3.54.3
SUSE:Manager Tools for SLE Micro 5 venv-salt-minion 0 3006.0-150000.3.54.3
Ubuntu:22.04:LTS salt 0 No fix
Ubuntu:Pro:14.04:LTS salt 0 No fix
Ubuntu:Pro:16.04:LTS salt 0 No fix
Ubuntu:Pro:18.04:LTS salt 0 No fix
openSUSE:Leap 15.5 salt 0 3006.0-150500.4.29.1
openSUSE:Leap Micro 5.3 salt 0 3006.0-150400.8.54.1
openSUSE:Leap Micro 5.4 salt 0 3006.0-150400.8.54.1
pypi salt 3006.0 No fix

Related vulnerabilities