Description
This module exploits a command injection vulnerability (CVE-2025-14558) in FreeBSD's rtsol(8) and rtsold(8) programs. These programs do not validate the domain search list options provided in IPv6 Router Advertisement messages; the option body is passed to resolvconf(8) unmodified. resolvconf(8) is a shell script which does not validate its input. A lack of quoting means that shell commands passed as input to resolvconf(8) may be executed, enabling command injection via $() substitution in the DNSSL domain name fields.
This exploit requires Layer 2 adjacency to the target (same network segment) and root privileges to send raw packets. Router advertisement messages are not routable and should be dropped by routers, so the attack does not cross network boundaries.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/freebsd/misc/rtsold/dnssl_cmdinjectmsf undefined(dnssl_cmdinject) > show actions ...actions...msf undefined(dnssl_cmdinject) > set ACTION < action-name >msf undefined(dnssl_cmdinject) > show options ...show and set options...msf undefined(dnssl_cmdinject) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub