A vulnerability has been identified in SCALANCE X-200RNA switch family (All versions < V3.2.7), SCALANCE X-300 switch family (incl. X408 and SIPLUS NET variants) (All versions < V4.1.0). Devices do not create a new unique private key after factory reset. An attacker could leverage this situation to a man-in-the-middle situation and decrypt previously captured traffic.
https://us-cert.cisa.gov/ics/advisories/icsa-21-012-02
https://cert-portal.siemens.com/productcert/pdf/ssa-274900.pdf