SaltStack Salt Cleartext Storage of Sensitive Information via cmdmod

Description

An issue was discovered in through SaltStack Salt before 3002.5. salt.modules.cmdmod can log credentials to the info or error log level.

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2022-05-24 17:43:22 UTC
Updated
2024-10-23 18:26:00 UTC
GitHub reviewed
2024-04-22 21:17:02 UTC
NVD published
2021-02-27

EPSS Score

Score Percentile
0.02% 4.50%

CVSS Scores

Base score Version Severity Vector
4.4 3.1
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:H)
They need powerful rights—admin, root, or similar—before this pays off.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-312 Cleartext Storage of Sensitive Information
CWE-522 Insufficiently Protected Credentials

Affected packages (9)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
pip salt < 2015.8.13 2015.8.13
pip salt >= 2016.3.0, < 2016.11.5 2016.11.5
pip salt >= 2016.11.7, < 2016.11.10 2016.11.10
pip salt >= 2017.5.0, < 2017.7.8 2017.7.8
pip salt >= 2018.2.0, <= 2018.3.5
pip salt >= 2019.2.0, < 2019.2.8 2019.2.8
pip salt >= 3000, < 3000.7 3000.7
pip salt >= 3001, < 3001.5 3001.5
pip salt >= 3002, < 3002.3 3002.3

References

cvelogic Threat Intelligence