CyberSecBulletin
CVE-2022-34821NVD status: Modified

RUGGEDCOM RM1224 LTE(4G) EU: Improper Control of Generation of Code

CVE-2022-34821 is a critical-severity improper control of generation of code vulnerability in RUGGEDCOM RM1224 LTE(4G) EU from Siemens, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version V7.2 as the first without the flaw, so updating RUGGEDCOM RM1224 LTE(4G) EU to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 2.48% chance of exploitation within 30 days, higher than 85% of scored CVEs.

Patch this week

Critical severity: a successful attack would have severe impact.

What to do

  1. Update RUGGEDCOM RM1224 LTE(4G) EU to V7.2 or a later version.
  2. Update RUGGEDCOM RM1224 LTE(4G) NAM to V7.2 or a later version.
  3. Update SCALANCE M804PB to V7.2 or a later version.
  4. Read the advisory on cert-portal.siemens.com for workarounds and exact fixed builds.
  5. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
SiemensRUGGEDCOM RM1224 LTE(4G) EUbefore V7.2V7.2
SiemensRUGGEDCOM RM1224 LTE(4G) NAMbefore V7.2V7.2
SiemensSCALANCE M804PBbefore V7.2V7.2
SiemensSCALANCE M812-1 ADSL-Routerbefore V7.2V7.2
SiemensSCALANCE M816-1 ADSL-Routerbefore V7.2V7.2
SiemensSCALANCE M826-2 SHDSL-Routerbefore V7.2V7.2
SiemensSCALANCE M874-2before V7.2V7.2
SiemensSCALANCE M874-3before V7.2V7.2
SiemensSCALANCE M876-3before V7.2V7.2
SiemensSCALANCE M876-3 (ROK)before V7.2V7.2
SiemensSCALANCE M876-4before V7.2V7.2
SiemensSCALANCE M876-4 (EU)before V7.2V7.2
SiemensSCALANCE M876-4 (NAM)before V7.2V7.2
SiemensSCALANCE MUM853-1 (EU)before V7.2V7.2
SiemensSCALANCE MUM856-1 (EU)before V7.2V7.2
SiemensSCALANCE MUM856-1 (RoW)before V7.2V7.2
SiemensSCALANCE S615 EEC LAN-Routerbefore V7.2V7.2
SiemensSCALANCE S615 LAN-Routerbefore V7.2V7.2
SiemensSCALANCE SC622-2Cbefore V2.3; V2.3 up to, but not including, V3.0V2.3, V3.0
SiemensSCALANCE SC626-2Cbefore V2.3; V2.3 up to, but not including, V3.0V2.3, V3.0
SiemensSCALANCE SC632-2Cbefore V2.3; V2.3 up to, but not including, V3.0V2.3, V3.0
SiemensSCALANCE SC636-2Cbefore V2.3; V2.3 up to, but not including, V3.0V2.3, V3.0
SiemensSCALANCE SC642-2Cbefore V2.3; V2.3 up to, but not including, V3.0V2.3, V3.0
SiemensSCALANCE SC646-2Cbefore V2.3; V2.3 up to, but not including, V3.0V2.3, V3.0
SiemensSCALANCE WAB762-1before V3.0.0V3.0.0

Version data comes from the organisation that assigned the CVE; 35 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 4.08.8HighCNA (siemens.com)
CVSS 3.17.6HighCNA (siemens.com)
CVSS 3.19.8CriticalNVD
CVSS 2.09.3HighNVD

Official description

A vulnerability has been identified in RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2), RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2), SCALANCE M804PB (6GK5804-0AP00-2AA2), SCALANCE M812-1 ADSL-Router (6GK5812-1AA00-2AA2), SCALANCE M812-1 ADSL-Router (6GK5812-1BA00-2AA2), SCALANCE M816-1 ADSL-Router (6GK5816-1AA00-2AA2), SCALANCE M816-1 ADSL-Router (6GK5816-1BA00-2AA2), SCALANCE M826-2 SHDSL-Router (6GK5826-2AB00-2AB2), SCALANCE M874-2 (6GK5874-2AA00-2AA2), SCALANCE M874-3 (6GK5874-3AA00-2AA2), SCALANCE M876-3 (6GK5876-3AA02-2BA2), SCALANCE M876-3 (ROK) (6GK5876-3AA02-2EA2), SCALANCE M876-4 (6GK5876-4AA10-2BA2), SCALANCE M876-4 (EU) (6GK5876-4AA00-2BA2), SCALANCE M876-4 (NAM) (6GK5876-4AA00-2DA2), SCALANCE MUM853-1 (EU) (6GK5853-2EA00-2DA1), SCALANCE MUM856-1 (EU) (6GK5856-2EA00-3DA1), SCALANCE MUM856-1 (RoW) (6GK5856-2EA00-3AA1), SCALANCE S615 EEC LAN-Router (6GK5615-0AA01-2AA2), SCALANCE S615 LAN-Router (6GK5615-0AA00-2AA2), SCALANCE SC622-2C (6GK5622-2GS00-2AC2), SCALANCE SC622-2C (6GK5622-2GS00-2AC2), SCALANCE SC626-2C (6GK5626-2GS00-2AC2), SCALANCE SC626-2C (6GK5626-2GS00-2AC2), SCALANCE SC632-2C (6GK5632-2GS00-2AC2), SCALANCE SC632-2C (6GK5632-2GS00-2AC2), SCALANCE SC636-2C (6GK5636-2GS00-2AC2), SCALANCE SC636-2C (6GK5636-2GS00-2AC2), SCALANCE SC642-2C (6GK5642-2GS00-2AC2), SCALANCE SC642-2C (6GK5642-2GS00-2AC2), SCALANCE SC646-2C (6GK5646-2GS00-2AC2), SCALANCE SC646-2C (6GK5646-2GS00-2AC2), SCALANCE WAB762-1 (6GK5762-1AJ00-6AA0), SCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0), SCALANCE WAM763-1 (US) (6GK5763-1AL00-7DB0), SCALANCE WAM766-1 (6GK5766-1GE00-7DA0), SCALANCE WAM766-1 (ME) (6GK5766-1GE00-7DC0), SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0), SCALANCE WAM766-1 EEC (6GK5766-1GE00-7TA0), SCALANCE WAM766-1 EEC (ME) (6GK5766-1GE00-7TC0), SCALANCE WAM766-1 EEC (US) (6GK5766-1GE00-7TB0), SCALANCE WUB762-1 (6GK5762-1AJ00-1AA0), SCALANCE WUB762-1 iFeatures (6GK5762-1AJ00-2AA0), SCALANCE WUM763-1 (6GK5763-1AL00-3AA0), SCALANCE WUM763-1 (6GK5763-1AL00-3DA0), SCALANCE WUM763-1 (US) (6GK5763-1AL00-3AB0), SCALANCE WUM763-1 (US) (6GK5763-1AL00-3DB0), SCALANCE WUM766-1 (6GK5766-1GE00-3DA0), SCALANCE WUM766-1 (ME) (6GK5766-1GE00-3DC0), SCALANCE WUM766-1 (USA) (6GK5766-1GE00-3DB0), SIMATIC CP 1242-7 V2 (6GK7242-7KX31-0XE0), SIMATIC CP 1243-1 (6GK7243-1BX30-0XE0), SIMATIC CP 1243-7 LTE EU (6GK7243-7KX30-0XE0), SIMATIC CP 1243-7 LTE US (6GK7243-7SX30-0XE0), SIMATIC CP 1243-8 IRC (6GK7243-8RX30-0XE0), SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0), SIMATIC CP 1543-1 (6GK7543-1AX00-0XE0), SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0), SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (6AG2542-6VX00-4XE0), SIPLUS ET 200SP CP 1543SP-1 ISEC (6AG1543-6WX00-7XE0), SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (6AG2543-6WX00-4XE0), SIPLUS NET CP 1242-7 V2 (6AG1242-7KX31-7XE0), SIPLUS NET CP 1543-1 (6AG1543-1AX00-2XE0), SIPLUS S7-1200 CP 1243-1 (6AG1243-1BX30-2AX0), SIPLUS S7-1200 CP 1243-1 RAIL (6AG2243-1BX30-1XE0). By injecting code to specific configuration options for OpenVPN, an attacker could execute arbitrary code with elevated privileges.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Control of Generation of Code

The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

How developers prevent this class of flaw

  • Refactor your program so that you do not have to dynamically generate code.
  • Run your code in a jail or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which code can be executed by your product. Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of your application may still be subject to compromise. Be careful to avoid CWE-243 and other weaknesses related to jails.
  • Use dynamic tools and techniques that interact with the product using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The product's operation may slow down, but it should not become unstable, crash, or generate incorrect results.

More Improper Control of Generation of Code vulnerabilities (CWE-94)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in RUGGEDCOM RM1224 LTE(4G) EU

All RUGGEDCOM RM1224 LTE(4G) EU vulnerabilities

Recent Improper Control of Generation of Code vulnerabilities

Spotted an error? Tell us.