Exploit database

Vulnerability

CVE-2025-14558

Remote code execution via ND6 Router Advertisements

Vulnerability details

Score
7.2
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Description

The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in 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 meant that shell commands pass as input to resolvconf(8) may be executed.

CVE Program

Exploit source choices

3 sources
FreeBSD rtsold/rtsol DNSSL Command Injection
MSF-freebsd--misc--rtsold_dnssl_cmdinjectMetasploitUnix / remote

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.

2025-12-16rtsold_dnssl_cmdinject.rb
johanneslks/cve-2025-14558
GH-79ab438ea7532a9fdb475b260720ed15GitHubUnofficial GitHub source

FreeBSD rtsold DNSSL Command Injection (RCE)

2025-12-203 files · 13 stars