CVE-2024-49368
Unchecked logrotate settings lead to arbitrary command execution
Reported by github_m · Published October 21, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nginx_ui | nginxui | 2.0.0-beta.36 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0xJacky | nginx-ui | < 2.0.0-beta.36 |
| nginxui | nginx_ui | 0 |
| 0xJacky | nginx-ui | 0 |
Timeline
- Oct 21, 2024 Coalition ESS Score (7 in total, the first dated here)
- Oct 21, 2024 CVE Published
- Oct 21, 2024 PoC Published (4 in total, the first dated here)
- Oct 22, 2024 EPSS Score (30 in total, the first dated here)
- Jan 3, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-49368
vulnetix vdb fixes CVE-2024-49368
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-49368/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-66m6-27r9-77vm x_refsource_CONFIRM
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.0.0-beta.36 x_refsource_MISC