# CVE-2026-45556: Path traversal in roxy-wi

> Authenticated attackers can write arbitrary files to managed load balancers via path traversal, leading to root-level remote code execution.

- **Severity:** Critical 9.9 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 10 Jun 2026
- **Updated:** 10 Jun 2026
- **Also known as:** GHSA-85gm-773v-x7m4

## What is CVE-2026-45556?

CVE-2026-45556 is a critical path traversal vulnerability in roxy-wi, published on 10 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Roxy-WI is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. In versions 8.2.6.4 and prior, POST /waf/<service>/<server_ip>/rule/<rule_id>/save accepts a config_file_name form field that is passed straight through to config_mod.master_slave_upload_and_restart(...) as the destination path. The validation chain (_replace_config_path_to_correct → check_is_conf) only requires the path to contain a hard-coded service substring (nginx/haproxy/apache2/httpd/keepalived) and the substring conf or cfg, and to not contain ... The encoded-slash substitution 92 → / is applied before the substring check, so the attacker can build any absolute path anywhere on the LB filesystem as long as it satisfies those substring constraints. The body of the WAF rule (config form field) is written verbatim to that path. By choosing a filename like 92etc92cron.d92nginx_cfg_evil (resolving to /etc/cron.d/nginx_cfg_evil), an attacker drops a cron entry on the load balancer with attacker-controlled content. Cron parses the file on its next scan, executing the embedded job as root — full RCE on every load balancer the caller's group manages. At time of publication, there are no publicly available patches.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command), CWE-73 (External Control of File Name or Path), CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), CWE-20 (Improper Input Validation)

## Which versions are affected by CVE-2026-45556?


## How do I fix CVE-2026-45556?

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

## Is CVE-2026-45556 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-45556 and fix it if it is affected.

What it is: CVE-2026-45556 is a critical path traversal vulnerability in roxy-wi, published on 10 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45556 exists.

Affected product: roxy-wi. 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-2026-45556/ (Markdown: https://insights.sbomify.com/CVE-2026-45556/index.md)
```

## Sources

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

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