# CVE-2024-50561: Cross-site scripting in RUGGEDCOM RM1224 LTE(4G) EU

> An attacker can inject malicious scripts into the web interface of Siemens SCALANCE routers, potentially bypassing security controls.

- **Severity:** Medium 5.1 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 12 Nov 2024
- **Updated:** 11 Feb 2025
- **Also known as:** GHSA-fc63-6853-v5m2

## What is CVE-2024-50561?

CVE-2024-50561 is a medium-severity cross-site scripting vulnerability in Siemens RUGGEDCOM RM1224 LTE(4G) EU, published on 12 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

A vulnerability has been identified in RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) (All versions < V8.2), RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2) (All versions < V8.2), SCALANCE M804PB (6GK5804-0AP00-2AA2) (All versions < V8.2), SCALANCE M812-1 ADSL-Router (6GK5812-1AA00-2AA2) (All versions < V8.2), SCALANCE M812-1 ADSL-Router (6GK5812-1BA00-2AA2) (All versions < V8.2), SCALANCE M816-1 ADSL-Router (6GK5816-1AA00-2AA2) (All versions < V8.2), SCALANCE M816-1 ADSL-Router (6GK5816-1BA00-2AA2) (All versions < V8.2), SCALANCE M826-2 SHDSL-Router (6GK5826-2AB00-2AB2) (All versions < V8.2), SCALANCE M874-2 (6GK5874-2AA00-2AA2) (All versions < V8.2), SCALANCE M874-3 (6GK5874-3AA00-2AA2) (All versions < V8.2), SCALANCE M874-3 3G-Router (CN) (6GK5874-3AA00-2FA2) (All versions < V8.2), SCALANCE M876-3 (6GK5876-3AA02-2BA2) (All versions < V8.2), SCALANCE M876-3 (ROK) (6GK5876-3AA02-2EA2) (All versions < V8.2), SCALANCE M876-4 (6GK5876-4AA10-2BA2) (All versions < V8.2), SCALANCE M876-4 (EU) (6GK5876-4AA00-2BA2) (All versions < V8.2), SCALANCE M876-4 (NAM) (6GK5876-4AA00-2DA2) (All versions < V8.2), SCALANCE MUM853-1 (A1) (6GK5853-2EA10-2AA1) (All versions < V8.2), SCALANCE MUM853-1 (B1) (6GK5853-2EA10-2BA1) (All versions < V8.2), SCALANCE MUM853-1 (EU) (6GK5853-2EA00-2DA1) (All versions < V8.2), SCALANCE MUM856-1 (A1) (6GK5856-2EA10-3AA1) (All versions < V8.2), SCALANCE MUM856-1 (B1) (6GK5856-2EA10-3BA1) (All versions < V8.2), SCALANCE MUM856-1 (CN) (6GK5856-2EA00-3FA1) (All versions < V8.2), SCALANCE MUM856-1 (EU) (6GK5856-2EA00-3DA1) (All versions < V8.2), SCALANCE MUM856-1 (RoW) (6GK5856-2EA00-3AA1) (All versions < V8.2), SCALANCE S615 EEC LAN-Router (6GK5615-0AA01-2AA2) (All versions < V8.2), SCALANCE S615 LAN-Router (6GK5615-0AA00-2AA2) (All versions < V8.2), SCALANCE WAB762-1 (6GK5762-1AJ00-6AA0) (All versions < V3.0.0), SCALANCE WAM763-1 (6GK5763-1AL00-7DA0) (All versions < V3.0.0), SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) (All versions < V3.0.0), SCALANCE WAM763-1 (US) (6GK5763-1AL00-7DB0) (All versions < V3.0.0), SCALANCE WAM766-1 (6GK5766-1GE00-7DA0) (All versions < V3.0.0), SCALANCE WAM766-1 (ME) (6GK5766-1GE00-7DC0) (All versions < V3.0.0), SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0) (All versions < V3.0.0), SCALANCE WAM766-1 EEC (6GK5766-1GE00-7TA0) (All versions < V3.0.0), SCALANCE WAM766-1 EEC (ME) (6GK5766-1GE00-7TC0) (All versions < V3.0.0), SCALANCE WAM766-1 EEC (US) (6GK5766-1GE00-7TB0) (All versions < V3.0.0), SCALANCE WUB762-1 (6GK5762-1AJ00-1AA0) (All versions < V3.0.0), SCALANCE WUB762-1 iFeatures (6GK5762-1AJ00-2AA0) (All versions < V3.0.0), SCALANCE WUM763-1 (6GK5763-1AL00-3AA0) (All versions < V3.0.0), SCALANCE WUM763-1 (6GK5763-1AL00-3DA0) (All versions < V3.0.0), SCALANCE WUM763-1 (US) (6GK5763-1AL00-3AB0) (All versions < V3.0.0), SCALANCE WUM763-1 (US) (6GK5763-1AL00-3DB0) (All versions < V3.0.0), SCALANCE WUM766-1 (6GK5766-1GE00-3DA0) (All versions < V3.0.0), SCALANCE WUM766-1 (ME) (6GK5766-1GE00-3DC0) (All versions < V3.0.0), SCALANCE WUM766-1 (USA) (6GK5766-1GE00-3DB0) (All versions < V3.0.0). Affected devices do not properly sanitize the filenames before uploading. This could allow an authenticated remote attacker to compromise of integrity of the system.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2024-50561?

It affects 26 products.


Products: Siemens Ruggedcom Rm1224 Lte\(4g\) Eu Firmware, Siemens Ruggedcom Rm1224 Lte\(4g\) Nam Firmware, Siemens Scalance M804pb Firmware, Siemens Scalance M812-1 \(Annex A\) Firmware, Siemens Scalance M812-1 \(Annex B\) Firmware, Siemens Scalance M816-1 \(Annex A\) Firmware, Siemens Scalance M816-1 \(Annex B\) Firmware, Siemens Scalance M826-2 Firmware, Siemens Scalance M874-2 Firmware, Siemens Scalance M874-3 \(Cn\) Firmware, Siemens Scalance M874-3 Firmware, Siemens Scalance M876-3 \(Rok\) Firmware, Siemens Scalance M876-3 Firmware, Siemens Scalance M876-4 \(Eu\) Firmware, Siemens Scalance M876-4 \(Nam\) Firmware, Siemens Scalance M876-4 Firmware, Siemens Scalance Mum853-1 \(A1\) Firmware, Siemens Scalance Mum853-1 \(B1\) Firmware, Siemens Scalance Mum853-1 \(Eu\) Firmware, Siemens Scalance Mum856-1 \(A1\) Firmware and 6 more.

## How do I fix CVE-2024-50561?

No fix has been published for CVE-2024-50561 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-50561 being exploited?

There is no known exploitation of CVE-2024-50561 in the wild and no public exploit code.

## Other vulnerabilities in Siemens RUGGEDCOM RM1224 LTE(4G) EU

- [CVE-2024-50557](https://insights.sbomify.com/CVE-2024-50557/): Command injection in RUGGEDCOM RM1224 LTE(4G) EU (high 8.6)
- [CVE-2024-50572](https://insights.sbomify.com/CVE-2024-50572/): Command injection in RUGGEDCOM RM1224 LTE(4G) EU (high 8.6)
- [CVE-2024-41976](https://insights.sbomify.com/CVE-2024-41976/): Code injection in RUGGEDCOM RM1224 LTE(4G) EU (high 8.6)
- [CVE-2024-41977](https://insights.sbomify.com/CVE-2024-41977/): Privilege escalation in RUGGEDCOM RM1224 LTE(4G) EU (high 7.3)
- [CVE-2024-41978](https://insights.sbomify.com/CVE-2024-41978/): Information disclosure in RUGGEDCOM RM1224 LTE(4G) EU (high 7.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-50561 and fix it if it is affected.

What it is: CVE-2024-50561 is a medium-severity cross-site scripting vulnerability in Siemens RUGGEDCOM RM1224 LTE(4G) EU, published on 12 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-50561 in the wild and no public exploit code.

Affected product: Siemens RUGGEDCOM RM1224 LTE(4G) EU. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-50561/ (Markdown: https://insights.sbomify.com/CVE-2024-50561/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-50561
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-50561
- OSV: https://osv.dev/vulnerability/CVE-2024-50561

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-50561/
Summaries are generated and may contain mistakes; the official description above is the record.
