
一个安全、被动的检测工具,用于识别潜在的 CVE-2026-24061 暴露风险,该漏洞影响特定版本的 GNU inetutils telnet。
本项目专为 DevOps 流水线、基础设施审计 和 防御性安全组合 而设计。
CVE-2026-24061 是一个影响特定版本 GNU inetutils telnet 的漏洞。如果系统安装了受影响版本且 telnet 客户端或服务可访问,则可能存在风险。
本工具 不会利用 该漏洞。
| GNU inetutils telnet 版本 | 状态 |
|---|---|
| < 1.9.3 | 不受影响 |
| 1.9.3 – 2.7 | 受影响 |
| ≥ 2.8 | 已修复 |
受影响版本的 GNU inetutils telnet 在某些条件下可能允许未经授权的访问。运行受影响版本的系统应进行更新,或在不需要时移除 telnet。
✔ 检测 telnet 是否存在
✔ 识别 GNU inetutils 实现
✔ 提取已安装版本
✔ 标记受影响范围内的版本
✔ 生成人类可读和 JSON 输出
✔ 支持 CI/CD 退出码
✘ 不进行漏洞利用
✘ 不进行模糊测试
✘ 不发送畸形网络流量
✘ 不进行服务交互
本工具 仅进行只读检测。
python3 inetutils-telnet-cve-2026-24061-check.py
JSON 输出(用于流水线)
python3 inetutils-telnet-cve-2026-24061-check.py --json
本工具可在您的流水线中自动运行。例如,在 GitHub Actions 中:
name: CVE-2026-24061 Check
on: [push, pull_request]
jobs:
security-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run CVE-2026-24061 detector
run: |
python3 inetutils-telnet-cve-2026-24061-check.py --json
如果检测到受影响版本的 GNU inetutils telnet,脚本将以非零状态退出,从而使流水线自动失败。同时也会生成 JSON 输出,用于日志记录或报告。
CVE-2026-24061 Telnet Exposure Check
-----------------------------------
host : ci-runner-01
telnet_present : True
implementation : GNU inetutils telnet
version : 2.8
vulnerability_status : not_vulnerable
recommended_action : none
CVE-2026-24061 Telnet Exposure Check
-----------------------------------
host : prod-web-02
telnet_present : True
implementation : GNU inetutils telnet
version : 2.5
vulnerability_status : vulnerable
recommended_action : Upgrade inetutils to a non-vulnerable version or remove/disable telnet service entirely.
CVE-2026-24061 Telnet Exposure Check
-----------------------------------
host : legacy-host
telnet_present : True
implementation : None
version : None
vulnerability_status : indeterminate
recommended_action : Verify telnet implementation and version manually; consider removal if not required.
如果系统被检测为受影响:
最安全的选项是完全移除 telnet 客户端:
sudo apt remove telnet -y
sudo apt autoremove -y
sudo dnf remove telnet -y
在 Arch Linux 上,telnet 捆绑在 inetutils 中,而 inetutils 提供了 ping 和 hostname 等基本工具。不建议移除 inetutils。
降低风险的更安全替代方案是:如果 telnet 服务器正在运行,则停止并禁用它:
sudo systemctl stop telnet.socket
sudo systemctl disable telnet.socket
许多 Linux 发行版仍随附较旧的二进制文件,因此通过包管理器升级可能无法解决该漏洞。 如果必须保留 telnet,请考虑: