# CVE-2018-0338: Command injection in Cisco Unified Computing System unknown

> An authenticated local attacker can execute arbitrary commands on Cisco UCS systems via crafted CLI inputs due to insufficient validation.

- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 7 Jun 2018
- **Updated:** 29 Nov 2024
- **Also known as:** GHSA-9xpm-3gq8-r4x6

## What is CVE-2018-0338?

CVE-2018-0338 is a high-severity command injection vulnerability in Cisco Unified Computing System, published on 7 Jun 2018. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A vulnerability in the role-based access-checking mechanisms of Cisco Unified Computing System (UCS) Software could allow an authenticated, local attacker to execute arbitrary commands on an affected system. The vulnerability exists because the affected software lacks proper input and validation checks for certain file systems. An attacker could exploit this vulnerability by issuing crafted commands in the CLI of an affected system. A successful exploit could allow the attacker to cause other users to execute unwanted arbitrary commands on the affected system. Cisco Bug IDs: CSCvf52994.

Weakness: CWE-863 (Incorrect Authorization), CWE-20 (Improper Input Validation)

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

It affects 1 product.


Products: Cisco Unified Computing System.

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

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

## Is CVE-2018-0338 being exploited?

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

## Other vulnerabilities in Cisco Unified Computing System

- [CVE-2026-20200](https://insights.sbomify.com/CVE-2026-20200/): Cisco Integrated Management Controller Argument Injection and Remote Code Execution Vulnerability (high 8.8)
- [CVE-2026-20094](https://insights.sbomify.com/CVE-2026-20094/): Cisco Integrated Management Controller Command Injection Vulnerability (high 8.8)
- [CVE-2018-0430](https://insights.sbomify.com/CVE-2018-0430/): Cisco Integrated Management Controller Command Injection Vulnerability (high 8.8)
- [CVE-2018-0431](https://insights.sbomify.com/CVE-2018-0431/): Cisco Integrated Management Controller Command Injection Vulnerability (high 8.8)
- [CVE-2012-4078](https://insights.sbomify.com/CVE-2012-4078/): Auth bypass in n/a (high 8.5)

## Fix prompt for AI coding agents

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

What it is: CVE-2018-0338 is a high-severity command injection vulnerability in Cisco Unified Computing System, published on 7 Jun 2018. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2018-0338 in the wild and no public exploit code.

Affected product: Cisco Unified Computing System. 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-0338/ (Markdown: https://insights.sbomify.com/CVE-2018-0338/index.md)
```

## Sources

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

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