This script is designed to check the version of XZ Utils installed on your Linux system and downgrade it to a safe version if necessary. It also detects the Linux distribution and the package manager used.
- Checks the installed version of XZ Utils and identifies if it's vulnerable.
- Detects the Linux distribution (Fedora, Debian, openSUSE, Kali Linux).
- Downgrades XZ Utils to a safe version if needed.
- Bash shell (most Linux distributions come with Bash pre-installed).
- Superuser (root) privileges to perform the downgrade operation.
- Download the script (
detect-cve-2024-3094.sh
) to your Linux system. - Open a terminal and navigate to the directory containing the script.
- Make the script executable with the command:
chmod +x detect-cve-2024-3094.sh
- Run the script as root (or with sudo) using the command:
sudo ./detect-cve-2024-3094.sh