
Python-Tool zur Erkennung der CVE-2025-5054-Schwachstelle auf Ubuntu-Systemen mit Apport ≤ 2.32.0. Führt umfassende Sicherheitsprüfungen durch und liefert Empfehlungen zur Schadensbegrenzung.
Ein Python-Tool, mit dem Sie prüfen können, ob Ihr Ubuntu-System anfällig für CVE-2025-5054 ist – eine Race Condition in Apport, die eine lokale Offenlegung von Informationen ermöglicht. Dieses Tool führt eine Reihe von Prüfungen durch, um den Status Ihres Systems zu ermitteln, und gibt Empfehlungen, falls Sie betroffen sind.
suid_dumpable)unix_chkpwd)Repository klonen:
git clone https://github.com/daryllundy/cve-2025-5054
cd cve-2025-5054
Eine virtuelle Umgebung mit uv erstellen und aktivieren:
uv venv
source .venv/bin/activate
Für optimale Ergebnisse als root (sudo) ausführen, damit alle Prüfungen abgeschlossen werden können.
uv run cve_2025_5054_detector.py
Beispielausgabe:
============================================================
CVE-2025-5054 Vulnerability Detection Tool
============================================================
[*] Checking operating system...
[*] Checking if Apport is installed...
[*] Checking Apport version...
[*] Checking core dump configuration...
[*] Checking suid_dumpable setting...
[*] Checking for unix_chkpwd...
============================================================
DETECTION RESULTS
============================================================
[OS Check] INFO: Ubuntu 22.04 detected
[Apport Check] INFO: Apport version 2.32.0 installed
[Version Check] VULNERABLE: Version 2.32.0 is vulnerable
[Core Pattern] INFO: Apport is configured as core dump handler
[Mitigation] WARNING: suid_dumpable=1 (default, vulnerable)
[Attack Vector] INFO: unix_chkpwd found at /usr/sbin/unix_chkpwd (not SUID/SGID)
============================================================
SUMMARY
============================================================
[!] YOUR SYSTEM APPEARS TO BE VULNERABLE TO CVE-2025-5054
Recommended actions:
1. Update Apport to the latest version:
sudo apt update && sudo apt upgrade apport
2. As a temporary mitigation, disable SUID core dumps:
sudo sysctl fs.suid_dumpable=0
echo 'fs.suid_dumpable=0' | sudo tee -a /etc/sysctl.conf
3. Consider disabling Apport temporarily if updates are not available:
sudo systemctl stop apport.service
sudo systemctl disable apport.service
Dieses Projekt ist unter der MIT-Lizenz lizenziert.
Entwickelt von Daryl Lundy