{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-49368 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-49368 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-49368 is a high-severity vulnerability in 0xJacky nginx-ui, published on 21 Oct 2024."},"fix_prompt":"Check this codebase for CVE-2024-49368 and fix it if it is affected.\n\nWhat it is: CVE-2024-49368 is a high-severity vulnerability in 0xJacky nginx-ui, published on 21 Oct 2024. \nExploitation: There is no known exploitation of CVE-2024-49368 in the wild and no public exploit code.\n\nAffected product: 0xJacky nginx-ui. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-49368/ (Markdown: https://insights.sbomify.com/CVE-2024-49368/index.md)","id":"CVE-2024-49368","markdown":"https://insights.sbomify.com/CVE-2024-49368/index.md","name":"CVE-2024-49368","record":{"aliases":["GHSA-66m6-27r9-77vm"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"nginx_ui","vendor":"nginxui"}],"cvss":{"score":8.9,"severity":"high","source":"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","version":"4.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-11-12","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-11-12T03:50:46Z","kind":"github_poc","ref":"https://github.com/Aashay221999/CVE-2024-49368","stars":0,"title":"Explorations of CVE-2024-49368 + Exploit Development"}],"tier":"poc_unverified"},"has_fix":false,"headline":"Unchecked logrotate settings lead to arbitrary command execution","id":"CVE-2024-49368","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Icinga 2 has a TLS Certificate Validation Bypass for JSON-RPC and HTTP API Connections","id":"CVE-2024-49369"},"packages":[],"prev":{"headline":"Nginx UI's log path can be controlled","id":"CVE-2024-49367"},"products":["nginx-ui"],"published":"2024-10-21","related":[{"cvss_score":9.8,"headline":"Nginx UI: Unauthenticated MCP Endpoint Allows Remote Nginx Takeover","id":"CVE-2026-33032","kev_date_added":null,"published":"2026-03-30"},{"cvss_score":9.8,"headline":"Nginx UI: Unauthenticated Backup Download with Encryption Key Disclosure","id":"CVE-2026-27944","kev_date_added":null,"published":"2026-03-05"},{"cvss_score":9.8,"headline":"Nginx-UI arbitrary file write through the Import Certificate feature","id":"CVE-2024-23827","kev_date_added":null,"published":"2024-01-29"},{"cvss_score":9.4,"headline":"Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite","id":"CVE-2026-107806","kev_date_added":null,"published":"2026-10-09"},{"cvss_score":9.4,"headline":"nginx-ui Backup Restore Allows Tampering with Encrypted Backups","id":"CVE-2026-33026","kev_date_added":null,"published":"2026-03-30"},{"cvss_score":9,"headline":"Unauthenticated Remote Code Execution via Backup Restore in nginx-ui","id":"CVE-2026-42238","kev_date_added":null,"published":"2026-05-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-01","vendors":["0xJacky"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-49368/"}