{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-31607.json"
      }
    ],
    "title": "salt: Command injection in the snapper module",
    "tracking": {
      "current_release_date": "2025-11-21T16:15:29+00:00",
      "generator": {
        "date": "2025-11-21T16:15:29+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "4.6.12"
        }
      },
      "id": "CVE-2021-31607",
      "initial_release_date": "2021-04-23T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2021-04-23T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2021-06-22T16:52:17+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2025-11-21T16:15:29+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Ceph Storage 2",
                "product": {
                  "name": "Red Hat Ceph Storage 2",
                  "product_id": "red_hat_ceph_storage_2",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:ceph_storage:2"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Ceph Storage 2"
          },
          {
            "category": "product_version",
            "name": "salt-minion",
            "product": {
              "name": "salt-minion",
              "product_id": "salt-minion",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/salt-minion"
              }
            }
          },
          {
            "category": "product_version",
            "name": "salt",
            "product": {
              "name": "salt",
              "product_id": "salt",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/salt?arch=src"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "salt as a component of Red Hat Ceph Storage 2",
          "product_id": "red_hat_ceph_storage_2:salt"
        },
        "product_reference": "salt",
        "relates_to_product_reference": "red_hat_ceph_storage_2"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "salt-minion as a component of Red Hat Ceph Storage 2",
          "product_id": "red_hat_ceph_storage_2:salt-minion"
        },
        "product_reference": "salt-minion",
        "relates_to_product_reference": "red_hat_ceph_storage_2"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2021-31607",
      "cwe": {
        "id": "CWE-77",
        "name": "Improper Neutralization of Special Elements used in a Command ('Command Injection')"
      },
      "discovery_date": "2021-04-23T00:00:00+00:00",
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1953065"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "A flaw was found in Salt. A command injection vulnerability occurs in the snapper module that allows local privilege escalation on a minion. This attack requires the creation of a file with a pathname that is backed up by snapper, with the master calling the snapper.diff function. Snapper.diff executes the popen unsafely. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "salt: Command injection in the snapper module",
          "title": "Vulnerability summary"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_affected": [
          "red_hat_ceph_storage_2:salt",
          "red_hat_ceph_storage_2:salt-minion"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2021-31607"
        },
        {
          "category": "external",
          "summary": "RHBZ#1953065",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1953065"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2021-31607",
          "url": "https://www.cve.org/CVERecord?id=CVE-2021-31607"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2021-31607",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-31607"
        }
      ],
      "release_date": "2021-04-23T00:00:00+00:00",
      "remediations": [
        {
          "category": "no_fix_planned",
          "details": "Out of support scope",
          "product_ids": [
            "red_hat_ceph_storage_2:salt",
            "red_hat_ceph_storage_2:salt-minion"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "red_hat_ceph_storage_2:salt",
            "red_hat_ceph_storage_2:salt-minion"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "red_hat_ceph_storage_2:salt",
            "red_hat_ceph_storage_2:salt-minion"
          ]
        }
      ],
      "title": "salt: Command injection in the snapper module"
    }
  ]
}