CVE-2024-3094-detect
XZ Utils Vulnerability Check and Downgrade Script
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.
Features
- 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.
Prerequisites
- Bash shell (most Linux distributions come with Bash pre-installed).
- Superuser (root) privileges to perform the downgrade operation.
Usage
- 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