# CVE-2024-50559: Path traversal in RUGGEDCOM RM1224 LTE(4G) EU

> An authenticated remote attacker can exploit improper filename validation in certificate handling to compromise system integrity on affected Siemens routers.

- **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:** 12 Nov 2024
- **Also known as:** GHSA-q9qw-6hf7-48wg

## What is CVE-2024-50559?

CVE-2024-50559 is a medium-severity path traversal 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). Affected devices do not properly validate the filenames of the certificate. This could allow an authenticated remote attacker to append arbitrary values which will lead to compromise of integrity of the system.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

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

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-50559?

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

## Is CVE-2024-50559 being exploited?

There is no known exploitation of CVE-2024-50559 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-50559 and fix it if it is affected.

What it is: CVE-2024-50559 is a medium-severity path traversal 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-50559 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-50559/ (Markdown: https://insights.sbomify.com/CVE-2024-50559/index.md)
```

## Sources

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

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