Exploit database

GH-4af696a23d9d84b2c2bc4ef95d038fb9

mahfuzreham/litespeed-cpanel-cve-2026-54420-fix

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-54420

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files6

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

fix.sh

Shell · 558 bytes
#!/bin/bash
set -e

echo "[+] Starting CVE-2026-54420 mitigation"

if [ ! -d "/usr/local/lsws" ]; then
  echo "[-] LiteSpeed not found"
  exit 1
fi

echo "[+] Updating LiteSpeed..."
/usr/local/lsws/admin/misc/lsup.sh -f || true

echo "[+] Refreshing CageFS (if present)..."
if command -v cagefsctl >/dev/null 2>&1; then
  cagefsctl --force-update || true
  cagefsctl --remount-all || true
fi

echo "[+] Restarting LiteSpeed..."
systemctl restart lsws

echo "[+] Current versions:"
rpm -qa | grep -Ei 'litespeed|lsws' || true

echo "[+] Mitigation completed"