Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-checker-2026 — Multi-OS vulnerability checker for CVE-2026-31431 (Linux kernel) and CVE-2026-41940 (cPanel) | Kitploit
Tools/GitHubGitHub/sebinxavi/cve-checker-2026
Vulnerability ScannersVulnerability AnalysisConfiguration AuditingForensicsIncident ResponseLog Analysis
GitHubsebinxavi/cve-checker-2026

cve-checker-2026

Multi-OS vulnerability checker for CVE-2026-31431 (Linux kernel) and CVE-2026-41940 (cPanel)

View Repository
1194 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE Checker 2026

Multi-OS vulnerability scanner for:

  • CVE-2026-31431 — Linux kernel crypto/algif_aead flaw
  • CVE-2026-41940 — cPanel & WHM authentication bypass (CVSS 9.8)

Supported Operating Systems

FamilyDistributions
DebianUbuntu, Debian, Linux Mint, Pop!_OS
RHELRHEL, CentOS, AlmaLinux, Rocky Linux, Oracle Linux, CloudLinux, Fedora, Amazon Linux
SUSESLES, openSUSE

Quick Start (one-liner)

Run directly from GitHub:

root@kitploit:~
curl -fsSL https://raw.githubusercontent.com/sebinxavi/cve-checker-2026/main/cve_check_2026.sh | sudo bash

Or download then execute (recommended for review first):

root@kitploit:~
curl -fsSL -o cve_check_2026.sh https://raw.githubusercontent.com/sebinxavi/cve-checker-2026/main/cve_check_2026.sh
chmod +x cve_check_2026.sh
sudo ./cve_check_2026.sh

What It Checks

CVE-2026-31431 (Linux kernel)

  • Kernel version and build configuration
  • algif_aead / af_alg module load state
  • Module blacklist status
  • Available patches via apt, dnf, yum, zypper
  • KernelCare livepatch status (where applicable)

CVE-2026-41940 (cPanel)

  • cPanel & WHM version detection
  • Comparison against patched versions
  • cpsrvd service status
  • Exposed ports (2082, 2083, 2086, 2087, 2095, 2096)
  • Recent session file activity (IoC indicator)
  • cPanel RPM integrity check

Output

FilePurpose
/var/log/cve_check_2026_<timestamp>.logFull debug log
/var/log/cve_check_2026_<timestamp>.report.txtExecutive summary

Falls back to /tmp/ if /var/log is not writable.

Exit Codes

CodeMeaning
0All clear or not applicable
1Script error (not root, missing tools)
2At least one CVE confirmed vulnerable

Useful for automation and monitoring integration.

Status Legend

StatusMeaning
SAFEConfirmed patched
LIKELY_SAFEProbably safe; not confirmed in changelog
MITIGATEDWorkaround applied (e.g., module blacklist)
VULNERABLEPatch available, not applied
VULNERABLE_EOLEnd-of-life version, no patch path
NOT_APPLICABLESoftware not installed
UNKNOWNCould not determine automatically

CVE-2026-41940 — Session Access Checker

For cPanel servers, a companion script is available to audit active session files for signs of exploitation from CVE-2026-41940.

What it does

Scans all files in /var/cpanel/sessions/raw/ and categorises each session into one of three groups:

ResultMeaning
LEGITIMATEReal login via handle_form_login, passwd, or api_token
SUSPICIOUSAttack payload (badpass) detected — no successful access
COMPROMISEDAttack payload with HTTP 200 response in access log — root was accessed

Run it

root@kitploit:~
curl -fsSL https://raw.githubusercontent.com/sebinxavi/cve-checker-2026/main/cpanel_session_checker.sh | sudo bash

Or download first:

root@kitploit:~
curl -fsSL -o cpanel_session_checker.sh https://raw.githubusercontent.com/sebinxavi/cve-checker-2026/main/cpanel_session_checker.sh
chmod +x cpanel_session_checker.sh
sudo ./cpanel_session_checker.sh

What to do based on the result

If COMPROMISED sessions are found:

  1. Isolate the server immediately
  2. Snapshot disk for forensics before any cleanup
  3. Rotate all passwords and SSH keys
  4. Check /tmp, cron, and ~/.ssh/authorized_keys for malware
  5. Notify hosted clients

The compromised server cannot be trusted — migrate all cPanel accounts to a freshly provisioned clean server:

root@kitploit:~
# On the compromised server — list all accounts
/usr/local/cpanel/bin/whmapi1 listaccts | grep 'user:'

# Package each account for migration
/scripts/pkgacct <username> /backup
root@kitploit:~
# On the clean server — restore each account
/scripts/restorepkg /backup/cpmove-<username>.tar.gz

Alternatively use WHM >> Transfer Tool >> Copy Multiple Accounts from Another Server for bulk migration with full fidelity.

After migration: update DNS to point domains to the new server IP, verify all sites load, then decommission or reimage the compromised server.

If only SUSPICIOUS sessions are found (all blocked):

  1. Confirm cPanel is patched: /scripts/upcp --force
  2. Clear all sessions: rm -f /var/cpanel/sessions/raw/*

CVE-2026-41940 — Mass cPanel Password Reset

After an attack (even if blocked), it is recommended to rotate all cPanel account passwords as a precaution. A dedicated script is available to mass-reset all cPanel account passwords and save them to a secure CSV file.

What it does

  • Fetches all cPanel accounts via whmapi1
  • Generates a cryptographically random 24-character password for each account
  • Resets passwords via WHM API (skips MySQL passwords)
  • Saves all new credentials to /root/cpanel_new_passwords_<timestamp>.csv (mode 600)
  • Logs all activity to /root/cpanel_passwd_reset_<timestamp>.log

Run it

root@kitploit:~
curl -fsSL https://raw.githubusercontent.com/sebinxavi/cve-checker-2026/main/cpanel_mass_passwd_reset.sh | sudo bash

After securely delivering new passwords to account holders, delete the CSV:

root@kitploit:~
shred -u /root/cpanel_new_passwords_*.csv

Remediation Guide

CVE-2026-41940 — cPanel & WHM

Update cPanel to the patched build for your branch:

BranchMinimum Build
110.x11.110.0.97
118.x11.118.0.63
126.x11.126.0.54
132.x11.132.0.29
134.x11.134.0.20
136.x11.136.0.5
root@kitploit:~
/scripts/upcp --force
/scripts/restartsrv_cpsrvd

CVE-2026-31431 — Linux Kernel

Standard servers (non-cPanel)

Debian / Ubuntu:

root@kitploit:~
apt update && apt upgrade -y && reboot

RHEL / AlmaLinux / CloudLinux:

root@kitploit:~
dnf update kernel -y && reboot
# or
yum update kernel -y && reboot

With KernelCare (no reboot required):

root@kitploit:~
kcarectl --update

cPanel servers (Ubuntu)

Warning: Do not run apt upgrade -y on a cPanel server — it can upgrade packages managed by cPanel (Apache, PHP, MySQL) and break services.

Upgrade the kernel package only:

root@kitploit:~
apt-get install --only-upgrade linux-image-generic linux-headers-generic linux-generic
reboot

Verify after reboot:

root@kitploit:~
uname -r

cPanel servers on AWS EC2 (Ubuntu)

AWS EC2 instances use a different kernel package (linux-aws) — the generic package names will not update the running kernel:

root@kitploit:~
apt update && apt install --only-upgrade -y \
    linux-aws \
    linux-image-aws \
    linux-headers-aws && \
echo "" && \
echo "Currently running : $(uname -r)" && \
echo "Will boot next    : $(ls /boot/vmlinuz-* | sort -V | tail -1 | sed 's|/boot/vmlinuz-||')"

Confirm the next boot kernel shown, then reboot:

root@kitploit:~
reboot

Temporary mitigation (if immediate reboot is not possible)

Blacklist the vulnerable module to prevent it from loading:

root@kitploit:~
echo "blacklist algif_aead" >> /etc/modprobe.d/disable-algif-aead.conf
echo "blacklist af_alg"     >> /etc/modprobe.d/disable-algif-aead.conf
update-initramfs -u   # Debian/Ubuntu
# or
dracut --force        # RHEL family

Re-run the checker to confirm status changes to MITIGATED. Apply the kernel patch at the next maintenance window.


Automation Examples

Cron — weekly check with email alerts

root@kitploit:~
sudo tee /etc/cron.weekly/cve-check-2026 > /dev/null <<'EOF'
#!/bin/bash
curl -fsSL https://raw.githubusercontent.com/sebinxavi/cve-checker-2026/main/cve_check_2026.sh | bash
if [[ $? -eq 2 ]]; then
    REPORT=$(ls -t /var/log/cve_check_2026_*.report.txt | head -1)
    mail -s "[CVE ALERT] $(hostname) vulnerable" [email protected] < "${REPORT}"
fi
EOF
sudo chmod +x /etc/cron.weekly/cve-check-2026

SSH — fan-out across multiple servers

root@kitploit:~
for host in server1 server2 server3; do
    ssh root@${host} "curl -fsSL https://raw.githubusercontent.com/sebinxavi/cve-checker-2026/main/cve_check_2026.sh | bash" \
        > "report_${host}_$(date +%F).txt" &
done
wait

Security Notice

This script is read-only — it only inspects the system and writes log files. It does not:

  • Modify any system configuration
  • Install or remove packages
  • Restart services
  • Reset passwords or credentials

Always review the script before piping curl to bash. View the source at: https://github.com/sebinxavi/cve-checker-2026/blob/main/cve_check_2026.sh

References

  • CVE-2026-31431 (NVD)
  • CVE-2026-41940 (NVD)
  • cPanel Security Advisory

License

MIT — see LICENSE

Author

Sebin Xavi — sebintech.com

Download Tool