This script is designed to check for vulnerabilities in the installed version of xz-utils on your system. If a vulnerable version is detected, the script offers to automatically download and install a stable version to mitigate potential security risks.
The following components are necessary for the script to run:
- Python 3
requests
library (can be installed viapip install requests
)tarfile
library (included with Python 3)- Internet access for downloading the stable version archive
- Automatically detects the installed version of xz-utils.
- Checks against a list of known vulnerable versions.
- Downloads and installs a stable version if a vulnerable version is detected.
- Cleans up downloaded archives after installation.
- Ensure Python 3 is installed on your system.
- Clone this repository or download the script directly.
- Install the required Python libraries using
pip install -r requirements.txt
(ensure you haverequests
library installed). - Run the script with
python check_xz_vulnerability.py
. - If a vulnerable version is detected, follow the prompts to install the stable version.
This script requires administrative privileges to install the new version of xz-utils. You may be prompted for your password if necessary.
This script is provided "as is", without warranty of any kind. Use it at your own risk. The authors are not responsible for any damage or issues that may arise from using this script.
Contributions are welcome. Please create a pull request or open an issue for any bugs or feature requests.
This project is licensed under the MIT License - see the LICENSE file for details.