{
  "document": {
    "title": "SSA-641963: Remote Code Execution Vulnerability in Multiple SIMATIC Software Products",
    "category": "Siemens Security Advisory",
    "csaf_version": "2.0",
    "publisher": {
      "name": "Siemens ProductCERT",
      "contact_details": "productcert@siemens.com",
      "category": "vendor",
      "namespace": "https://www.siemens.com"
    },
    "distribution": {
      "text": "Disclosure is not limited.",
      "tlp": {
        "label": "WHITE"
      }
    },
    "tracking": {
      "id": "SSA-641963",
      "status": "final",
      "version": "1",
      "revision_history": [
        {
          "number": "1",
          "legacy_version": "1.0",
          "date": "2021-07-13T00:00:00Z",
          "summary": "Publication Date"
        }
      ],
      "initial_release_date": "2021-07-13T00:00:00Z",
      "current_release_date": "2021-07-13T00:00:00Z",
      "generator": {
        "engine": {
          "name": "Siemens ProductCERT CSAF Generator",
          "version": "1"
        }
      }
    },
    "notes": [
      {
        "title": "Summary",
        "category": "summary",
        "text": "Multiple SIMATIC Software products are affected by a vulnerability that could allow an attacker to manipulate project files and remotely execute code.\n\nSiemens has released updates for several affected products and recommends to update to the latest versions. Siemens recommends specific countermeasures for products where updates are not, or not yet available."
      },
      {
        "title": "General Recommendations",
        "category": "general",
        "text": "As a general security measure, Siemens strongly recommends to protect network access to devices with appropriate mechanisms. In order to operate the devices in a protected IT environment, Siemens recommends to configure the environment according to Siemens' operational guidelines for Industrial Security (Download: https://www.siemens.com/cert/operational-guidelines-industrial-security), and to follow the recommendations in the product manuals.\n\nAdditional information on Industrial Security by Siemens can be found at: https://www.siemens.com/industrialsecurity"
      },
      {
        "title": "Additional Resources",
        "category": "general",
        "text": "For further inquiries on security vulnerabilities in Siemens products and solutions, please contact the Siemens ProductCERT: https://www.siemens.com/cert/advisories"
      },
      {
        "title": "Terms of Use",
        "category": "legal_disclaimer",
        "text": "Siemens Security Advisories are subject to the terms and conditions contained in Siemens' underlying license terms or other applicable agreements previously agreed to with Siemens (hereinafter \"License Terms\"). To the extent applicable to information, software or documentation made available in or through a Siemens Security Advisory, the Terms of Use of Siemens' Global Website (https://www.siemens.com/terms_of_use, hereinafter \"Terms of Use\"), in particular Sections 8-10 of the Terms of Use, shall apply additionally. In case of conflicts, the License Terms shall prevail over the Terms of Use."
      }
    ],
    "references": [
      {
        "category": "self",
        "url": "https://cert-portal.siemens.com/productcert/pdf/ssa-641963.pdf",
        "summary": "SSA-641963: Remote Code Execution Vulnerability in Multiple SIMATIC Software Products - PDF Version"
      },
      {
        "category": "self",
        "url": "https://cert-portal.siemens.com/productcert/txt/ssa-641963.txt",
        "summary": "SSA-641963: Remote Code Execution Vulnerability in Multiple SIMATIC Software Products - TXT Version"
      },
      {
        "category": "self",
        "url": "https://cert-portal.siemens.com/productcert/csaf/ssa-641963.json",
        "summary": "SSA-641963: Remote Code Execution Vulnerability in Multiple SIMATIC Software Products - CSAF Version"
      }
    ],
    "acknowledgments": [
      {
        "names": [
          "Uri Katz"
        ],
        "organization": "Claroty",
        "summary": "coordinated disclosure"
      }
    ]
  },
  "product_tree": {
    "branches": [
      {
        "name": "Siemens",
        "category": "vendor",
        "branches": [
          {
            "name": "SIMATIC PCS 7 V8.2 and earlier",
            "category": "product_name",
            "branches": [
              {
                "name": "vers:all/*",
                "category": "product_version_range",
                "product": {
                  "product_id": "1",
                  "name": "SIMATIC PCS 7 V8.2 and earlier"
                }
              }
            ]
          },
          {
            "name": "SIMATIC PCS 7 V9.0",
            "category": "product_name",
            "branches": [
              {
                "name": "< V9.0 SP3",
                "category": "product_version_range",
                "product": {
                  "product_id": "2",
                  "name": "SIMATIC PCS 7 V9.0"
                }
              }
            ]
          },
          {
            "name": "SIMATIC PDM",
            "category": "product_name",
            "branches": [
              {
                "name": "< V9.2",
                "category": "product_version_range",
                "product": {
                  "product_id": "3",
                  "name": "SIMATIC PDM"
                }
              }
            ]
          },
          {
            "name": "SIMATIC STEP 7 V5.X",
            "category": "product_name",
            "branches": [
              {
                "name": "< V5.6 SP2 HF3",
                "category": "product_version_range",
                "product": {
                  "product_id": "4",
                  "name": "SIMATIC STEP 7 V5.X"
                }
              }
            ]
          },
          {
            "name": "SINAMICS STARTER (containing STEP 7 OEM version)",
            "category": "product_name",
            "branches": [
              {
                "name": "< V5.4 HF2",
                "category": "product_version_range",
                "product": {
                  "product_id": "5",
                  "name": "SINAMICS STARTER (containing STEP 7 OEM version)"
                }
              }
            ]
          }
        ]
      }
    ]
  },
  "vulnerabilities": [
    {
      "title": "CVE-2021-31893",
      "notes": [
        {
          "title": "Summary",
          "category": "summary",
          "text": "The affected software contains a buffer overflow vulnerability while handling certain files that could allow a local attacker to trigger a denial-of-service condition or potentially lead to remote code execution."
        }
      ],
      "cve": "CVE-2021-31893",
      "cwe": {
        "id": "CWE-120",
        "name": "Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')"
      },
      "product_status": {
        "known_affected": [
          "1",
          "2",
          "3",
          "4",
          "5"
        ]
      },
      "scores": [
        {
          "cvss_v3": {
            "version": "3.1",
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C"
          },
          "products": [
            "1",
            "2",
            "3",
            "4",
            "5"
          ]
        }
      ],
      "remediations": [
        {
          "product_ids": [
            "1"
          ],
          "category": "none_available",
          "details": "Currently no remediation is available"
        },
        {
          "product_ids": [
            "2"
          ],
          "category": "vendor_fix",
          "details": "Update to V9.0 SP3 or later version"
        },
        {
          "product_ids": [
            "3"
          ],
          "category": "vendor_fix",
          "details": "Update to V9.2 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109794361/"
        },
        {
          "product_ids": [
            "4"
          ],
          "category": "vendor_fix",
          "details": "Update to V5.6 SP2 HF3 or later version",
          "url": "https://support.industry.siemens.com/cs/de/en/view/109779992/"
        },
        {
          "product_ids": [
            "5"
          ],
          "category": "vendor_fix",
          "details": "Update to V5.4 HF2 or later version",
          "url": "https://support.industry.siemens.com/cs/us/en/view/109782792/"
        },
        {
          "product_ids": [
            "1",
            "2",
            "3",
            "4",
            "5"
          ],
          "category": "workaround",
          "details": "Restrict access to project files on the engineering station to trusted users"
        },
        {
          "product_ids": [
            "1",
            "2",
            "3",
            "4",
            "5"
          ],
          "category": "workaround",
          "details": "Only use project files from trusted sources"
        }
      ],
      "references": [
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109794361/",
          "summary": "CVE-2021-31893 - SIMATIC PDM"
        },
        {
          "url": "https://support.industry.siemens.com/cs/de/en/view/109779992/",
          "summary": "CVE-2021-31893 - SIMATIC STEP 7 V5.X"
        },
        {
          "url": "https://support.industry.siemens.com/cs/us/en/view/109782792/",
          "summary": "CVE-2021-31893 - SINAMICS STARTER (containing STEP 7 OEM version)"
        },
        {
          "url": "https://cert-portal.siemens.com/productcert/mitre/CVE-2021-31893.json",
          "summary": "CVE-2021-31893 Mitre 5.0 json"
        }
      ]
    }
  ]
}

