{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2016-8641 exists.","fix":"Apply the vendor's patch.","what":"CVE-2016-8641 is a medium-severity vulnerability in nagios, published on 1 Aug 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2016-8641 and fix it if it is affected.\n\nWhat it is: CVE-2016-8641 is a medium-severity vulnerability in nagios, published on 1 Aug 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2016-8641 exists.\n\nAffected product: nagios. 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-2016-8641/ (Markdown: https://insights.sbomify.com/CVE-2016-8641/index.md)","id":"CVE-2016-8641","markdown":"https://insights.sbomify.com/CVE-2016-8641/index.md","name":"CVE-2016-8641","record":{"aliases":["GHSA-xh33-x4fq-3r2h"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Nagios monitoring server","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges by exploiting insecure file ownership changes during daemon initialization via symbolic link attacks.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"nagios","vendor":"nagios"}],"cvss":{"score":6.7,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"A privilege escalation vulnerability was found in nagios 4.2.x that occurs in daemon-init.in when creating necessary files and insecurely changing the ownership afterwards. It's possible for the local attacker to create symbolic links before the files are to be created and possibly escalating the privileges with the ownership change.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2016-11-18","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2016-11-18","kind":"exploitdb","ref":"40774","stars":null,"title":"Nagios 4.2.2 - Local Privilege Escalation"}],"tier":"weaponised"},"has_fix":true,"headline":"Privilege escalation in nagios","id":"CVE-2016-8641","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2016"},"n_packages":0,"n_references":5,"next":{"headline":"Moodle Unauthenticated Access","id":"CVE-2016-8642"},"packages":[],"prev":{"headline":"SQL Injection in pycsw","id":"CVE-2016-8640"},"products":["nagios"],"published":"2018-08-01","related":[{"cvss_score":10,"headline":"Command injection in n/a","id":"CVE-2002-1959","kev_date_added":null,"published":"2005-06-28"},{"cvss_score":9.8,"headline":"Hardcoded credentials in n/a","id":"CVE-2016-0726","kev_date_added":null,"published":"2017-06-06"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2008-7313","kev_date_added":null,"published":"2017-03-31"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2014-5009","kev_date_added":null,"published":"2017-03-31"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2016-9565","kev_date_added":null,"published":"2016-12-15"},{"cvss_score":8.8,"headline":"Nagios Log Server 2.1.3 has CSRF.","id":"CVE-2020-6585","kev_date_added":null,"published":"2020-03-16"},{"cvss_score":7.8,"headline":"Privilege escalation in n/a","id":"CVE-2016-10089","kev_date_added":null,"published":"2017-02-15"}],"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":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["Nagios Enterprises"]},"summary":"Local attackers can escalate privileges by exploiting insecure file ownership changes during daemon initialization via symbolic link attacks.","url":"https://insights.sbomify.com/CVE-2016-8641/"}