{"schemaVersion":3,"id":"CVE-2016-8641","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-08-01T14:00:00.000Z","modified":"2024-08-06T02:27:41.284Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":6.7,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01141,"percentile":0.66156,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01141},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01117,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01141,"percentile":0.66156}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01117,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01141,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01141,"percentile":0.66156}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"40774","name":"Nagios 4.2.2 - Local Privilege Escalation","source":"exploit-database","url":"https://www.exploit-db.com/exploits/40774","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"linux","file":"exploits/linux/local/40774.sh","codes":["CVE-2016-8641"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"nagios enterprises","product":"nagios","name":"nagios","label":"nagios","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2.0, < 4.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.2.0, < 4.3.0","eol":null,"hubHref":"/vendor/nagios_enterprises/nagios"},{"vendor":"nagios","product":"nagios","name":"nagios","label":"nagios","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.2.0","noFixRecorded":false,"fixedIn":null},{"text":"4.2.1","noFixRecorded":false,"fixedIn":null},{"text":"4.2.2","noFixRecorded":false,"fixedIn":null},{"text":"4.2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.2.0 | 4.2.1 | 4.2.2 | 4.2.3","eol":null,"hubHref":"/vendor/nagios/nagios"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.exploit-db.com/exploits/40774/","label":"www.exploit-db.com/exploits/40774/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://github.com/NagiosEnterprises/nagioscore/commit/f2ed227673d3b2da643eb5cad26b2d87674f28c1.patch","label":"github.com/NagiosEnterprises/nagioscore/commit/f2ed227673d3b2da643eb5cad26b2d87674f28c1.patch","hostname":"github.com","tags":["X Refsource CONFIRM","Patch","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8641","label":"bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8641","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/95121","label":"www.securityfocus.com/bid/95121","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201702-26","label":"security.gentoo.org/glsa/201702-26","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:11073-1","SUSE-SU-2018:3240-1","SUSE-SU-2018:3620-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11073-1","SUSE-SU-2018:3240-1","SUSE-SU-2018:3620-1"]},"timeline":[{"kind":"published","date":"2018-08-01T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T02:27:41.284Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:49:19.618Z","stale":false,"partial":false}}