---
title: CentOS Web Panel (CWP) Security Vulnerability – Remediation Guide
description: "> ***DISCLAIMER:** This advisory applies only to users running CentOS Web Panel (CWP). If you are not using CWP, you do not need to take any action based on this guide.* > > > > ***For users running CentOS 7…"
url: "https://truehost.com/support/knowledge-base/centos-web-panel-cwp-security-vulnerability-remediation-guide/"
updated: "2026-06-23"
category: Cloudpanel
---

# CentOS Web Panel (CWP) Security Vulnerability – Remediation Guide

> ***DISCLAIMER:** This advisory applies only to users running CentOS Web Panel (CWP). If you are not using CWP, you do not need to take any action based on this guide.*
>
>
>
> ***For users running CentOS 7 or older:** We strongly advise you to back up your files and have your server reinstalled with CentOS 8, CentOS 9, AlmaLinux 8, AlmaLinux 9, or AlmaLinux 10.*

> ## Overview
>
>
>
> A critical vulnerability has been identified in CentOS Web Panel (CWP) that allows malicious users to gain unauthorized root access to affected servers. The vulnerability exists within the CWP interface and permits attackers to inject and execute arbitrary shell commands with root privileges.
>
>
>
> **Severity:** Critical
> **Affected Component:** CWP Interface
> **Required Action:** Immediate
>
>
>
> For detailed technical information, see: [CVE-2025-67888](https://www.sentinelone.com/vulnerability-database/cve-2025-67888/)
>
>
>
> ## Remediation Steps
>
>
>
> ### Step 1: Run the Security Remediation Script (Required)
>
>
>
> The fastest and most reliable way to address this vulnerability is to execute our prepared remediation script. Choose one of the following commands based on your preferred download utility:
>
>
>
> #### Using cURL:
>
>
>
> ```
> curl -s https://fsn114.truehost.cloud/download/CVE_cwp-2026-remediation.sh -o /tmp/remediation.sh && sudo bash /tmp/remediation.sh
> ```
>
>
>
> #### Using wget:
>
>
>
> ```
> wget -q https://fsn114.truehost.cloud/download/CVE_cwp-2026-remediation.sh -O /tmp/remediation.sh && sudo bash /tmp/remediation.sh
> ```
>
>
>
> **Note:** The script must be executed with root/sudo privileges.
>
>
>
> ### Step 2: Install and Configure Mod Security [Remediation script now installs modsecurity, however the steps can still be used for troubleshooting]
>
>
>
> Mod Security provides an additional layer of protection by filtering malicious requests at the web server level.
>
>
>
> #### Installation Instructions:
>
>
>
> 1. Log into CWP as root
> 2. Navigate to **Security** → **Mod Security**
> 3. You will see a message indicating: "Mod Security configuration is: not installed"
> 4. Select your preferred rule set from the options below:
>    - **OWASP Old** – Traditional OWASP rules (default with CWP)
>    - **OWASP Latest** – Latest OWASP rules with automatic updates *(CWP Pro required)*
>    - **Comodo WAF** – Comodo Web Application Firewall with automatic updates *(CWP Pro required)*
> 5. Click the **Install Mod Security** button
> 6. Confirm the installation at the dialog prompt
> 7. Monitor the installation log until you see: "Mod Security Successfully Installed"
>
>
>
> ### Step 3: Update CWP to the Latest Version
>
>
>
> Ensure CWP is running the most recent version with all security patches applied.
>
>
>
> Execute the following commands in order:
>
>
>
> ```
> sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp
> ```
>
>
>
> Then:
>
>
>
> ```
> sh /scripts/update_cwp
> ```
>
>
>
> **Important:** Note any error messages that appear during the update process. If you encounter errors, please contact support with the error details.
>
>
>
> ### Step 4: Rerun the Remediation Script (Recommended)
>
>
>
> After completing the above steps, rerun the remediation script to ensure all protections are properly applied:
>
>
>
> #### Using cURL:
>
>
>
> ```
> curl -s https://fsn114.truehost.cloud/download/CVE_cwp-2026-remediation.sh -o /tmp/remediation.sh && sudo bash /tmp/remediation.sh
> ```
>
>
>
> #### Using wget:
>
>
>
> ```
> wget -q https://fsn114.truehost.cloud/download/CVE_cwp-2026-remediation.sh -O /tmp/remediation.sh && sudo bash /tmp/remediation.sh
> ```
>
>
>
> ## Verification
>
>
>
> After completing all remediation steps, verify that:
>
>
>
> - [ ] The remediation script completed without errors
> - [ ] Mod Security is installed and active
> - [ ] CWP has been updated to the latest version
> - [ ] CWP interface is functioning normally
> - [ ] Your web applications continue to operate as expected
>
>
>
> ## Support
>
>
>
> If you encounter any issues during the remediation process, or if you have questions about this vulnerability, our support team is available to assist.
>
>
>
> **Contact:** support@truehost.cloud
>
>
>
> When contacting support, please include:
>
>
>
> - Any error messages encountered
> - Your CWP version
> - Steps you have already completed
> - Temporary access to the server, sharable via https://pass.cloudoon.com/
>
>
>
> ## Summary
>
>
>
> | Step | Action | Priority |
> | --- | --- | --- |
> | 1 | Run remediation script | **Required** |
> | 2 | Install Mod Security | Required |
> | 3 | Update CWP | Required |
> | 4 | Rerun remediation script | Recommended |
>
>
>
> **Timeline:** Complete all steps as soon as possible to minimize security exposure.
>
>
>
> ~ Truehost Team
