CVE-2025-43079
JSON

6.3medium

Local Privilege Escalation via qagent_uninstall.sh Qualys Cloud Agents

Severity
6.3medium CVSS:3.1 by Qualys
Exploit likelihood
0.17% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Qualys

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.

Affected

Product or packageVersionsReported by
Qualys Inc Qualys Agentfrom 5.0 before 7.2.3, from 3.12 before 7.1.0, from 4.17 before 6.0.0, before 6.2.1, before 6.3.1, before 3.31.1-8, before 3.21.1-6, before 4.2.6 and 3 moreCVE List

Classification

CWE-426

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

El Agente de Qualys Cloud incluía un script de desinstalación empaquetado (qagent_uninstall.sh), específico para las versiones compatibles con Mac y Linux, que invocaba múltiples comandos del sistema sin usar rutas absolutas y sin sanear el entorno $PATH. Si el script de desinstalación se ejecuta con privilegios elevados (por ejemplo, a través de sudo) en un entorno donde $PATH ha sido manipulado, un atacante con privilegios de root/sudo podría hacer que se ejecutaran ejecutables maliciosos en lugar de los binarios del sistema previstos. Este comportamiento puede ser aprovechado para la escalada local de privilegios y la ejecución arbitraria de comandos bajo privilegios elevados.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-43079 changed 2026-03-18CVE Terms of Use
NVDCVE-2025-43079 changed 2026-10-07Public domain