# CVE-2023-32322: Arbitrary file read in Ombi

> Administrative users can read arbitrary files on the host system via path traversal in log endpoints, potentially exposing sensitive data.

- **Severity:** Medium 4.9 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 18 May 2023
- **Updated:** 21 Jan 2025
- **Also known as:** GHSA-28j3-84m7-gpjp

## What is CVE-2023-32322?

CVE-2023-32322 is a medium-severity path traversal vulnerability in Ombi-app Ombi, published on 18 May 2023. An attacker needs administrator access to exploit it, with no action from the victim.

### Official description

Ombi is an open source application which allows users to request specific media from popular self-hosted streaming servers. Versions prior to 4.38.2 contain an arbitrary file read vulnerability where an Ombi administrative user may access files available to the Ombi server process on the host operating system. Ombi administrators may not always be local system administrators and so this may violate the security expectations of the system. The arbitrary file read vulnerability was present in `ReadLogFile` and `Download` endpoints in `SystemControllers.cs` as the parameter `logFileName` is not sanitized before being combined with the `Logs` directory. When using `Path.Combine(arg1, arg2, arg3)`, an attacker may be able to escape to folders/files outside of `Path.Combine(arg1, arg2)` by using ".." in `arg3`. In addition, by specifying an absolute path for `arg3`, `Path.Combine` will completely ignore the first two arguments and just return just `arg3`. This vulnerability can lead to information disclosure. The Ombi `documentation` suggests running Ombi as a Service with Administrator privileges. An attacker targeting such an application may be able to read the files of any Windows user on the host machine and certain system files. This issue has been addressed in commit `b8a8f029` and in release version 4.38.2. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue is also tracked as GHSL-2023-088.

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

## Which versions are affected by CVE-2023-32322?

It affects 1 product.


Products: Ombi Ombi.

## How do I fix CVE-2023-32322?

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

## Is CVE-2023-32322 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-32322 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-32322 and fix it if it is affected.

What it is: CVE-2023-32322 is a medium-severity path traversal vulnerability in Ombi-app Ombi, published on 18 May 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-32322 exists.

Affected product: Ombi-app Ombi. 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-2023-32322/ (Markdown: https://insights.sbomify.com/CVE-2023-32322/index.md)
```

## Sources

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

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