Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-43079: CWE-426 Untrusted Search Path in Qualys Inc Qualys Agent

0
Medium
VulnerabilityCVE-2025-43079cvecve-2025-43079cwe-426
Published: Mon Nov 10 2025 (11/10/2025, 17:10:31 UTC)
Source: CVE Database V5
Vendor/Project: Qualys Inc
Product: Qualys Agent

Description

The Qualys Cloud Agent included a bundled uninstall script (qagent_uninstall.sh), specific to Mac and Linux supported versions that invoked multiple system commands without using absolute paths and without sanitizing the $PATH environment. If the uninstall script is executed with elevated privileges (e.g., via sudo) in an environment where $PATH has been manipulated, an attacker with root/sudo privileges could cause malicious executables to be run in place of the intended system binaries. This behavior can be leveraged for local privilege escalation and arbitrary command execution under elevated privileges.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/18/2026, 18:17:54 UTC

Technical Analysis

CVE-2025-43079 is a vulnerability classified under CWE-426 (Untrusted Search Path) found in the Qualys Cloud Agent version 5.0 for Mac and Linux platforms. The issue arises from the bundled uninstall script (qagent_uninstall.sh), which executes multiple system commands without specifying absolute paths and without sanitizing the $PATH environment variable. When this uninstall script is run with elevated privileges (e.g., via sudo), an attacker who already has root or sudo privileges can manipulate the $PATH environment variable to insert malicious executables that will be invoked instead of the intended system binaries. This manipulation can result in arbitrary command execution and local privilege escalation under elevated privileges. The vulnerability requires that the attacker have some level of elevated access initially and that the uninstall script be executed, which typically involves user interaction. The CVSS v3.1 score is 6.3 (medium severity), reflecting the requirement for high privileges and user interaction but also the potential for significant impact on confidentiality, integrity, and availability. No patches or known exploits are currently reported, but the vulnerability represents a serious risk if exploited. The root cause is the failure to use absolute paths and sanitize environment variables in scripts executed with elevated privileges, a common security best practice violation.

Potential Impact

The primary impact of CVE-2025-43079 is local privilege escalation and arbitrary command execution on affected Mac and Linux systems running Qualys Cloud Agent 5.0. An attacker with existing root or sudo privileges can exploit this vulnerability to execute malicious code with elevated privileges by manipulating the $PATH environment variable when the uninstall script is run. This could lead to full system compromise, unauthorized data access, or disruption of system operations. For organizations, this vulnerability could undermine the integrity and availability of critical security monitoring infrastructure provided by Qualys Agent. It may also facilitate further lateral movement or persistence within networks if attackers leverage this flaw to escalate privileges or implant backdoors. Although exploitation requires prior elevated access and user interaction, the potential damage is high in sensitive environments where Qualys Agent is deployed for vulnerability management and compliance monitoring. The lack of known exploits in the wild reduces immediate risk but does not eliminate the threat, especially in environments with untrusted users or inadequate privilege controls.

Mitigation Recommendations

To mitigate CVE-2025-43079, organizations should: 1) Avoid running the Qualys Agent uninstall script with elevated privileges unless absolutely necessary and ensure it is executed in a controlled environment with a sanitized and secure $PATH variable. 2) Modify or replace the uninstall script to use absolute paths for all system commands and explicitly sanitize or reset the $PATH environment variable before execution. 3) Restrict access to the uninstall script to trusted administrators only and monitor its execution closely. 4) Implement strict privilege management policies to limit which users have sudo or root access, reducing the risk of malicious $PATH manipulation. 5) Conduct regular audits of environment variables and script execution contexts on critical systems. 6) Engage with Qualys for any available patches or updated versions that address this vulnerability and plan timely upgrades once available. 7) Employ endpoint detection and response (EDR) tools to detect anomalous command executions or privilege escalations related to the uninstall process. These steps go beyond generic advice by focusing on script hardening, environment control, and privilege restriction specific to this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Qualys
Date Reserved
2025-04-16T14:43:29.660Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69121fbbc86173478b6e1457

Added to database: 11/10/2025, 5:24:11 PM

Last enriched: 3/18/2026, 6:17:54 PM

Last updated: 3/22/2026, 8:19:39 AM

Views: 197

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses