{"answers":{"affected":"It affects 15 products.","exploited":"There is no known exploitation of CVE-2022-34820 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-34820 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-34820 is a high-severity command injection vulnerability in Siemens SIMATIC CP 1242-7 V2, published on 12 Jul 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-34820 and fix it if it is affected.\n\nWhat it is: CVE-2022-34820 is a high-severity command injection vulnerability in Siemens SIMATIC CP 1242-7 V2, published on 12 Jul 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-34820 in the wild and no public exploit code.\n\nAffected product: Siemens SIMATIC CP 1242-7 V2. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-34820/ (Markdown: https://insights.sbomify.com/CVE-2022-34820/index.md)","id":"CVE-2022-34820","markdown":"https://insights.sbomify.com/CVE-2022-34820/index.md","name":"CVE-2022-34820","record":{"aliases":["GHSA-6j7x-87cm-p532"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Siemens SIMATIC CP","requires_auth":"high_privilege","summary":"Attackers can inject commands during authentication to execute arbitrary code with elevated privileges on Siemens SIMATIC communication processors.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"siemens","cpe":[{"product":"simatic_cp_1242-7_v2_firmware","vendor":"siemens"},{"product":"simatic_cp_1243-1_firmware","vendor":"siemens"},{"product":"simatic_cp_1243-7_lte_eu_firmware","vendor":"siemens"},{"product":"simatic_cp_1243-7_lte_us_firmware","vendor":"siemens"},{"product":"simatic_cp_1243-8_irc_firmware","vendor":"siemens"},{"product":"simatic_cp_1542sp-1_irc_firmware","vendor":"siemens"},{"product":"simatic_cp_1543-1_firmware","vendor":"siemens"},{"product":"simatic_cp_1543sp-1_firmware","vendor":"siemens"},{"product":"siplus_et_200sp_cp_1542sp-1_irc_tx_rail_firmware","vendor":"siemens"},{"product":"siplus_et_200sp_cp_1543sp-1_isec_firmware","vendor":"siemens"},{"product":"siplus_et_200sp_cp_1543sp-1_isec_tx_rail_firmware","vendor":"siemens"},{"product":"siplus_net_cp_1242-7_v2_firmware","vendor":"siemens"},{"product":"siplus_net_cp_1543-1_firmware","vendor":"siemens"},{"product":"siplus_s7-1200_cp_1243-1_firmware","vendor":"siemens"},{"product":"siplus_s7-1200_cp_1243-1_rail_firmware","vendor":"siemens"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C","version":"3.1"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"A vulnerability has been identified in SIMATIC CP 1242-7 V2 (All versions \u003c V3.3.46), SIMATIC CP 1243-1 (All versions \u003c V3.3.46), SIMATIC CP 1243-7 LTE EU (All versions \u003c V3.3.46), SIMATIC CP 1243-7 LTE US (All versions \u003c V3.3.46), SIMATIC CP 1243-8 IRC (All versions \u003c V3.3.46), SIMATIC CP 1542SP-1 IRC (All versions \u003e= V2.0 \u003c V2.2.28), SIMATIC CP 1543-1 (All versions \u003c V3.0.22), SIMATIC CP 1543SP-1 (All versions \u003e= V2.0 \u003c V2.2.28), SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (All versions \u003e= V2.0 \u003c V2.2.28), SIPLUS ET 200SP CP 1543SP-1 ISEC (All versions \u003e= V2.0 \u003c V2.2.28), SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (All versions \u003e= V2.0 \u003c V2.2.28), SIPLUS NET CP 1242-7 V2 (All versions \u003c V3.3.46), SIPLUS NET CP 1543-1 (All versions \u003c V3.0.22), SIPLUS S7-1200 CP 1243-1 (All versions \u003c V3.3.46), SIPLUS S7-1200 CP 1243-1 RAIL (All versions \u003c V3.3.46). The application does not correctly escape some user provided fields during the authentication process. This could allow an attacker to inject custom commands and execute arbitrary code with elevated privileges.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Command injection in SIMATIC CP 1242-7 V2","id":"CVE-2022-34820","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Code injection in RUGGEDCOM RM1224 LTE(4G) EU","id":"CVE-2022-34821"},"packages":[],"prev":{"headline":"Memory corruption in SIMATIC CP 1242-7 V2","id":"CVE-2022-34819"},"products":["SIMATIC CP 1242-7 V2","SIMATIC CP 1243-1","SIMATIC CP 1243-7 LTE EU","SIMATIC CP 1243-7 LTE US","SIMATIC CP 1243-8 IRC","SIMATIC CP 1542SP-1 IRC","SIMATIC CP 1543-1","SIMATIC CP 1543SP-1","SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL","SIPLUS ET 200SP CP 1543SP-1 ISEC","SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL","SIPLUS NET CP 1242-7 V2","SIPLUS NET CP 1543-1","SIPLUS S7-1200 CP 1243-1","SIPLUS S7-1200 CP 1243-1 RAIL"],"published":"2022-07-12","related":[{"cvss_score":10,"headline":"Memory corruption in SIMATIC CP 1242-7 V2","id":"CVE-2022-34819","kev_date_added":null,"published":"2022-07-12"},{"cvss_score":8.8,"headline":"Code injection in RUGGEDCOM RM1224 LTE(4G) EU","id":"CVE-2022-34821","kev_date_added":null,"published":"2022-07-12"},{"cvss_score":7.5,"headline":"Use after free in SIMATIC CP 1242-7 V2","id":"CVE-2022-43716","kev_date_added":null,"published":"2023-04-11"},{"cvss_score":7.5,"headline":"Denial of service in SIMATIC CP 1242-7 V2","id":"CVE-2022-43767","kev_date_added":null,"published":"2023-04-11"},{"cvss_score":7.5,"headline":"Denial of service in SIMATIC CP 1242-7 V2","id":"CVE-2022-43768","kev_date_added":null,"published":"2023-04-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-21","vendors":["Siemens"]},"summary":"Attackers can inject commands during authentication to execute arbitrary code with elevated privileges on Siemens SIMATIC communication processors.","url":"https://insights.sbomify.com/CVE-2022-34820/"}