GHSA-ghc2-hx3w-jqmp

    Dashboard / Vulnerabilities / GHSA-ghc2-hx3w-jqmp

    GHSA-ghc2-hx3w-jqmp

    Published: 24 May 2022Last Modified: 23 Oct 2024

    Summary: SaltStack Salt command injection in the Salt-API when using the Salt-SSH client

    Details: An issue was discovered in SaltStack Salt before 3002.5. Sending crafted web requests to the Salt API can result in `salt.utils.thin.gen_thin()` command injection because of different handling of single versus double quotes. This is related to `salt/utils/thin.py`.

    References: https://nvd.nist.gov/vuln/detail/CVE-2021-3148, https://www.debian.org/security/2021/dsa-5011, https://security.gentoo.org/glsa/202310-22, https://security.gentoo.org/glsa/202103-01, https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25, https://lists.fedoraproject.org/archives/list/[email protected]/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5, https://lists.fedoraproject.org/archives/list/[email protected]/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH, https://lists.fedoraproject.org/archives/list/[email protected]/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB, https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5, https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH, https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB, https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html, https://github.com/saltstack/salt/releases, https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.3.rst#L23, https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.5.rst#L23, https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.7.rst#L23, https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/CHANGELOG.md?plain=1#L2374, https://github.com/saltstack/salt, https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-55.yaml

    Affected packages

    Package

    Name: salt

    Purl: pkg:pypi/salt

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2015.8.13

    Affected versions

    0.10.0
    0.10.1
    0.10.2
    0.10.3
    0.10.4
    0.10.5

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-ghc2-hx3w-jqmp | CVE-DB