{
  "document": {
    "title": "SSA-995338: Multiple Vulnerabilities in COMOS Web",
    "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-995338",
      "status": "final",
      "version": "3",
      "revision_history": [
        {
          "number": "1",
          "legacy_version": "1.0",
          "date": "2022-01-11T00:00:00Z",
          "summary": "Publication Date"
        },
        {
          "number": "2",
          "legacy_version": "1.1",
          "date": "2022-02-08T00:00:00Z",
          "summary": "Added CVE-2021-37194 and Updated Affected Products"
        },
        {
          "number": "3",
          "legacy_version": "1.2",
          "date": "2022-04-12T00:00:00Z",
          "summary": "Updated remediation for COMOS V10.3"
        }
      ],
      "initial_release_date": "2022-01-11T00:00:00Z",
      "current_release_date": "2022-04-12T00:00:00Z",
      "generator": {
        "engine": {
          "name": "Siemens ProductCERT CSAF Generator",
          "version": "1"
        }
      }
    },
    "notes": [
      {
        "title": "Summary",
        "category": "summary",
        "text": "Multiple vulnerabilities were identified in the web components of COMOS that could allow an attacker to conduct code injections, store data in undesired locations, execute arbitrary SQL statements, and run cross-site request forgery attacks.\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-995338.pdf",
        "summary": "SSA-995338: Multiple Vulnerabilities in COMOS Web - PDF Version"
      },
      {
        "category": "self",
        "url": "https://cert-portal.siemens.com/productcert/txt/ssa-995338.txt",
        "summary": "SSA-995338: Multiple Vulnerabilities in COMOS Web - TXT Version"
      },
      {
        "category": "self",
        "url": "https://cert-portal.siemens.com/productcert/csaf/ssa-995338.json",
        "summary": "SSA-995338: Multiple Vulnerabilities in COMOS Web - CSAF Version"
      }
    ],
    "acknowledgments": [
      {
        "names": [
          "Sandro Poppi"
        ],
        "summary": "reporting the vulnerabilities"
      }
    ]
  },
  "product_tree": {
    "branches": [
      {
        "name": "Siemens",
        "category": "vendor",
        "branches": [
          {
            "name": "COMOS V10.2",
            "category": "product_name",
            "branches": [
              {
                "name": "All versions only if web components are used",
                "category": "product_version_range",
                "product": {
                  "product_id": "1",
                  "name": "COMOS V10.2"
                }
              }
            ]
          },
          {
            "name": "COMOS V10.3",
            "category": "product_name",
            "branches": [
              {
                "name": "< V10.3.3.3 only if web components are used",
                "category": "product_version_range",
                "product": {
                  "product_id": "2",
                  "name": "COMOS V10.3"
                }
              }
            ]
          },
          {
            "name": "COMOS V10.3",
            "category": "product_name",
            "branches": [
              {
                "name": ">= V10.3.3.3 only if web components are used",
                "category": "product_version_range",
                "product": {
                  "product_id": "3",
                  "name": "COMOS V10.3"
                }
              }
            ]
          },
          {
            "name": "COMOS V10.4",
            "category": "product_name",
            "branches": [
              {
                "name": "< V10.4.1 only if web components are used",
                "category": "product_version_range",
                "product": {
                  "product_id": "4",
                  "name": "COMOS V10.4"
                }
              }
            ]
          }
        ]
      }
    ]
  },
  "vulnerabilities": [
    {
      "title": "CVE-2021-37194",
      "notes": [
        {
          "title": "Summary",
          "category": "summary",
          "text": "The COMOS Web component of COMOS allows to upload and store arbitrary files at the webserver. This could allow an attacker to store malicious files."
        }
      ],
      "cve": "CVE-2021-37194",
      "cwe": {
        "id": "CWE-434",
        "name": "Unrestricted Upload of File with Dangerous Type"
      },
      "product_status": {
        "known_affected": [
          "1",
          "2",
          "4"
        ]
      },
      "scores": [
        {
          "cvss_v3": {
            "version": "3.1",
            "baseScore": 4.3,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:P/RL:O/RC:C"
          },
          "products": [
            "1",
            "2",
            "4"
          ]
        }
      ],
      "remediations": [
        {
          "product_ids": [
            "1"
          ],
          "category": "no_fix_planned",
          "details": "Currently no fix is planned"
        },
        {
          "product_ids": [
            "2"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.3.3.3 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/"
        },
        {
          "product_ids": [
            "4"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.4.1 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "For COMOS V10.4.1 / V10.3.3.3 and CVE-2021-37194: Use the new whitelisting feature, to specify the filetypes that are allowed to be uploaded"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "CVE-2021-37196 can be mitigated in all versions by making the root directory of the web server read only"
        }
      ],
      "references": [
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/",
          "summary": "CVE-2021-37194 - COMOS V10.3"
        },
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/",
          "summary": "CVE-2021-37194 - COMOS V10.4"
        },
        {
          "url": "https://cert-portal.siemens.com/productcert/mitre/CVE-2021-37194.json",
          "summary": "CVE-2021-37194 Mitre 5.0 json"
        }
      ]
    },
    {
      "title": "CVE-2021-37195",
      "notes": [
        {
          "title": "Summary",
          "category": "summary",
          "text": "The COMOS Web component of COMOS accepts arbitrary code as attachment to tasks. This could allow an attacker to inject malicious code that is executed when loading the attachment."
        }
      ],
      "cve": "CVE-2021-37195",
      "cwe": {
        "id": "CWE-80",
        "name": "Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)"
      },
      "product_status": {
        "known_affected": [
          "1",
          "2",
          "4"
        ]
      },
      "scores": [
        {
          "cvss_v3": {
            "version": "3.1",
            "baseScore": 7.7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N/E:P/RL:O/RC:C"
          },
          "products": [
            "1",
            "2",
            "4"
          ]
        }
      ],
      "remediations": [
        {
          "product_ids": [
            "1"
          ],
          "category": "no_fix_planned",
          "details": "Currently no fix is planned"
        },
        {
          "product_ids": [
            "2"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.3.3.3 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/"
        },
        {
          "product_ids": [
            "4"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.4.1 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "For COMOS V10.4.1 / V10.3.3.3 and CVE-2021-37194: Use the new whitelisting feature, to specify the filetypes that are allowed to be uploaded"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "CVE-2021-37196 can be mitigated in all versions by making the root directory of the web server read only"
        }
      ],
      "references": [
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/",
          "summary": "CVE-2021-37195 - COMOS V10.3"
        },
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/",
          "summary": "CVE-2021-37195 - COMOS V10.4"
        },
        {
          "url": "https://cert-portal.siemens.com/productcert/mitre/CVE-2021-37195.json",
          "summary": "CVE-2021-37195 Mitre 5.0 json"
        }
      ]
    },
    {
      "title": "CVE-2021-37196",
      "notes": [
        {
          "title": "Summary",
          "category": "summary",
          "text": "The COMOS Web component of COMOS unpacks specially crafted archive files to relative paths. This vulnerability could allow an attacker to store files in any folder accessible by the COMOS Web webservice."
        }
      ],
      "cve": "CVE-2021-37196",
      "cwe": {
        "id": "CWE-23",
        "name": "Relative Path Traversal"
      },
      "product_status": {
        "known_affected": [
          "1",
          "2",
          "3",
          "4"
        ]
      },
      "scores": [
        {
          "cvss_v3": {
            "version": "3.1",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N/E:P/RL:O/RC:C"
          },
          "products": [
            "1",
            "2",
            "3",
            "4"
          ]
        }
      ],
      "remediations": [
        {
          "product_ids": [
            "1",
            "3"
          ],
          "category": "no_fix_planned",
          "details": "Currently no fix is planned"
        },
        {
          "product_ids": [
            "2"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.3.3.3 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/"
        },
        {
          "product_ids": [
            "4"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.4.1 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/"
        },
        {
          "product_ids": [
            "1",
            "2",
            "3",
            "4"
          ],
          "category": "mitigation",
          "details": "For COMOS V10.4.1 / V10.3.3.3 and CVE-2021-37194: Use the new whitelisting feature, to specify the filetypes that are allowed to be uploaded"
        },
        {
          "product_ids": [
            "1",
            "2",
            "3",
            "4"
          ],
          "category": "mitigation",
          "details": "CVE-2021-37196 can be mitigated in all versions by making the root directory of the web server read only"
        }
      ],
      "references": [
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/",
          "summary": "CVE-2021-37196 - COMOS V10.3"
        },
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/",
          "summary": "CVE-2021-37196 - COMOS V10.4"
        },
        {
          "url": "https://cert-portal.siemens.com/productcert/mitre/CVE-2021-37196.json",
          "summary": "CVE-2021-37196 Mitre 5.0 json"
        }
      ]
    },
    {
      "title": "CVE-2021-37197",
      "notes": [
        {
          "title": "Summary",
          "category": "summary",
          "text": "The COMOS Web component of COMOS is vulnerable to SQL injections. This could allow an attacker to execute arbitrary SQL statements."
        }
      ],
      "cve": "CVE-2021-37197",
      "cwe": {
        "id": "CWE-89",
        "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"
      },
      "product_status": {
        "known_affected": [
          "1",
          "2",
          "4"
        ]
      },
      "scores": [
        {
          "cvss_v3": {
            "version": "3.1",
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C"
          },
          "products": [
            "1",
            "2",
            "4"
          ]
        }
      ],
      "remediations": [
        {
          "product_ids": [
            "1"
          ],
          "category": "no_fix_planned",
          "details": "Currently no fix is planned"
        },
        {
          "product_ids": [
            "2"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.3.3.3 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/"
        },
        {
          "product_ids": [
            "4"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.4.1 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "For COMOS V10.4.1 / V10.3.3.3 and CVE-2021-37194: Use the new whitelisting feature, to specify the filetypes that are allowed to be uploaded"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "CVE-2021-37196 can be mitigated in all versions by making the root directory of the web server read only"
        }
      ],
      "references": [
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/",
          "summary": "CVE-2021-37197 - COMOS V10.3"
        },
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/",
          "summary": "CVE-2021-37197 - COMOS V10.4"
        },
        {
          "url": "https://cert-portal.siemens.com/productcert/mitre/CVE-2021-37197.json",
          "summary": "CVE-2021-37197 Mitre 5.0 json"
        }
      ]
    },
    {
      "title": "CVE-2021-37198",
      "notes": [
        {
          "title": "Summary",
          "category": "summary",
          "text": "The COMOS Web component of COMOS uses a flawed implementation of CSRF prevention. An attacker could exploit this vulnerability to perform cross-site request forgery attacks."
        }
      ],
      "cve": "CVE-2021-37198",
      "cwe": {
        "id": "CWE-352",
        "name": "Cross-Site Request Forgery (CSRF)"
      },
      "product_status": {
        "known_affected": [
          "1",
          "2",
          "4"
        ]
      },
      "scores": [
        {
          "cvss_v3": {
            "version": "3.1",
            "baseScore": 5.4,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C"
          },
          "products": [
            "1",
            "2",
            "4"
          ]
        }
      ],
      "remediations": [
        {
          "product_ids": [
            "1"
          ],
          "category": "no_fix_planned",
          "details": "Currently no fix is planned"
        },
        {
          "product_ids": [
            "2"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.3.3.3 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/"
        },
        {
          "product_ids": [
            "4"
          ],
          "category": "vendor_fix",
          "details": "Update to V10.4.1 or later version",
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "For COMOS V10.4.1 / V10.3.3.3 and CVE-2021-37194: Use the new whitelisting feature, to specify the filetypes that are allowed to be uploaded"
        },
        {
          "product_ids": [
            "1",
            "2",
            "4"
          ],
          "category": "mitigation",
          "details": "CVE-2021-37196 can be mitigated in all versions by making the root directory of the web server read only"
        }
      ],
      "references": [
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109808862/",
          "summary": "CVE-2021-37198 - COMOS V10.3"
        },
        {
          "url": "https://support.industry.siemens.com/cs/ww/en/view/109805632/",
          "summary": "CVE-2021-37198 - COMOS V10.4"
        },
        {
          "url": "https://cert-portal.siemens.com/productcert/mitre/CVE-2021-37198.json",
          "summary": "CVE-2021-37198 Mitre 5.0 json"
        }
      ]
    }
  ]
}

