Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-3291 Overview
CVE-2024-3291 is a local privilege escalation vulnerability in Tenable Nessus Agent on Windows hosts. The flaw affects Nessus Agent versions prior to 10.6.4 when the agent is installed to a non-default directory. During installation, the agent fails to enforce secure permissions on created sub-directories. A low-privileged local user who can write to the parent directory can abuse these weak permissions to escalate privileges to SYSTEM. The weakness is categorized under CWE-281: Improper Preservation of Permissions.
Critical Impact
A local attacker with low privileges can escalate to SYSTEM on Windows hosts running Nessus Agent installed outside the default directory.
Affected Products
- Tenable Nessus Agent for Windows versions prior to 10.6.4
- Deployments where the agent is installed to a non-default directory
- Windows hosts where the custom installation parent directory inherits weak ACLs
Discovery Timeline
- 2024-05-17 - CVE-2024-3291 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-3291
Vulnerability Analysis
The vulnerability stems from how Nessus Agent handles sub-directory permissions during installation to a non-default path. When installed to the default location under C:\Program Files\, Windows inherits restrictive access control lists (ACLs) that limit write access to administrators. When an operator chooses an alternate installation directory, the agent installer does not apply equivalent restrictive ACLs to the sub-directories it creates. The installed binaries and supporting files inherit the parent directory permissions, which may permit modification by non-administrative users. The agent runs as a SYSTEM-level service, so modification of files loaded by that service results in code execution with SYSTEM privileges.
Root Cause
The root cause is improper preservation of permissions during custom-path installation. The installer relies on the parent directory's inherited ACLs rather than explicitly hardening sub-directory permissions. If an administrator installs the agent to a directory with permissive ACLs, for example a path under a drive root created with default inheritance, the Nessus Agent sub-directories inherit the same weak permissions.
Attack Vector
Exploitation requires local access and low privileges on the target Windows host. An attacker enumerates the Nessus Agent installation path and tests write access to the agent's sub-directories and binaries. If write access is permitted, the attacker replaces or modifies a file loaded by the Nessus Agent service, such as a DLL or executable. When the service starts or reloads the modified component, the attacker's code executes in the SYSTEM security context. No user interaction and no network access are required. See the Tenable Security Advisory TNS-2024-09 for vendor-confirmed details.
Detection Methods for CVE-2024-3291
Indicators of Compromise
- Unexpected writes or file replacements within the Nessus Agent installation directory by non-administrative users
- Nessus Agent service (Tenable Nessus Agent) loading unsigned or modified binaries
- New or modified DLL and executable files in the agent sub-directories with timestamps outside the patch window
Detection Strategies
- Audit ACLs on all Nessus Agent installation directories and flag any that grant write permissions to non-administrative principals
- Monitor Windows Security Event ID 4663 for write access to files within the Nessus Agent installation path
- Correlate process creation events where child processes of the Nessus Agent service run unexpected binaries or scripts
Monitoring Recommendations
- Enable file integrity monitoring on the Nessus Agent installation directory, including sub-directories and binaries
- Alert on service binary modifications for services running as LocalSystem
- Track installations of Nessus Agent and record the chosen installation path for compliance review
How to Mitigate CVE-2024-3291
Immediate Actions Required
- Upgrade Nessus Agent on all Windows hosts to version 10.6.4 or later
- Inventory all Windows endpoints running Nessus Agent and identify any installed to non-default paths
- Review and tighten ACLs on existing non-default installation directories to restrict write access to administrators only
Patch Information
Tenable addressed the issue in Nessus Agent 10.6.4. The fixed installer applies restrictive permissions to agent sub-directories regardless of the installation path. Refer to the Tenable Security Advisory TNS-2024-09 for the official fix guidance and download links.
Workarounds
- Reinstall Nessus Agent to the default C:\Program Files\Tenable\Nessus Agent\ location where Windows applies restrictive inherited ACLs
- Manually apply restrictive NTFS permissions on the non-default installation directory, removing write access for Users and Authenticated Users
- Restrict interactive logon on hosts running Nessus Agent to reduce local attack surface
# Configuration example: audit and harden non-default Nessus Agent install directory
icacls "D:\Tools\Nessus Agent" /inheritance:r
icacls "D:\Tools\Nessus Agent" /grant:r "SYSTEM:(OI)(CI)F" "Administrators:(OI)(CI)F"
icacls "D:\Tools\Nessus Agent" /remove "Users" "Authenticated Users"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

