一个 Python 工具,用于检查您的 Ubuntu 系统是否存在 CVE-2025-5054 漏洞,这是 Apport 中的一个竞态条件,可导致本地信息泄露。该工具执行一系列检查以确定您系统的状态,并在受影响时提供建议。
克隆仓库:
git clone https://github.com/daryllundy/cve-2025-5054
cd cve-2025-5054
使用 uv 创建并激活虚拟环境:
uv venv
source .venv/bin/activate
为获得最佳效果,请以 root 身份(sudo)运行以完成所有检查。
uv run cve_2025_5054_detector.py
示例输出:
============================================================
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
本项目采用 MIT 许可证 进行许可。
由 Daryl Lundy 开发