# CVE-2018-2380: SAP Customer Relationship Management (CRM) Path Traversal

> An attacker can exploit insufficient path validation in SAP CRM to traverse directories and access or modify unauthorized files.

- **Severity:** Medium 6.6 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L`)
- **Exploited in the wild:** Yes, since 3 Nov 2021 (CISA KEV), used in ransomware
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 1 Mar 2018
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-22j7-69m5-2pqh

## What is CVE-2018-2380?

CVE-2018-2380 is a medium-severity path traversal vulnerability in SAP CRM, published on 1 Mar 2018. An attacker needs administrator access to exploit it, with no action from the victim.

### Official description

SAP CRM, 7.01, 7.02,7.30, 7.31, 7.33, 7.54, allows an attacker to exploit insufficient validation of path information provided by users, thus characters representing "traverse to parent directory" are passed through to the file APIs.

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

## Which versions are affected by CVE-2018-2380?

It affects 1 product.


Products: Sap Customer Relationship Management.

## How do I fix CVE-2018-2380?

No fix has been published for CVE-2018-2380 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.

## Is CVE-2018-2380 being exploited?

Yes. Attackers have exploited CVE-2018-2380 in the wild since at least 3 Nov 2021, including in ransomware campaigns.

Public exploit code:

- PoC of Remote Command Execution via Log injection on SAP NetWeaver AS JAVA CRM (github_poc): https://github.com/erpscanteam/CVE-2018-2380
- SAP NetWeaver AS JAVA CRM - Log injection Remote Command Execution (exploitdb)

## Other vulnerabilities in SAP CRM

- [CVE-2014-8669](https://insights.sbomify.com/CVE-2014-8669/): Code injection in n/a (critical 10.0)
- [CVE-2013-7095](https://insights.sbomify.com/CVE-2013-7095/): XML external entity in n/a (critical 10.0)
- [CVE-2017-15296](https://insights.sbomify.com/CVE-2017-15296/): Cross-site request forgery in n/a (high 8.8)
- [CVE-2015-3979](https://insights.sbomify.com/CVE-2015-3979/): Code injection in n/a (high 7.5)
- [CVE-2015-3980](https://insights.sbomify.com/CVE-2015-3980/): SQL injection in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2018-2380 and fix it if it is affected.

What it is: CVE-2018-2380 is a medium-severity path traversal vulnerability in SAP CRM, published on 1 Mar 2018. An attacker needs administrator access to exploit it, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2018-2380 in the wild since at least 3 Nov 2021, including in ransomware campaigns.

Affected product: SAP CRM. 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-2018-2380/ (Markdown: https://insights.sbomify.com/CVE-2018-2380/index.md)
```

## Sources

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

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