Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEstablish LAN-side host access
-
DeliveryCraft malformed RTSP packet with oversized SDP payload
-
ExploitSend outbound through FreeBSD NAT gateway
-
Executionlibalias RTSP handler rewrites packet into fixed stack buffer
-
PersistStack buffer overflow corrupts return address
-
ImpactKernel (ipfw NAT) or root natd process code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control a host located on the inside (LAN-facing) interface of a FreeBSD NAT gateway running an unpatched version of libalias. The gateway must be performing NAT using either ipfw(4) in-kernel NAT or natd(8), both of which invoke libalias for protocol-aware packet rewriting. The RTSP handler must be active - it is part of libalias by default but is only invoked when RTSP traffic is being processed. No authentication to the gateway itself is required; the attacker simply sends outbound RTSP traffic from the trusted-side network. The primary limiting factors are: (1) AV:A adjacency - the attacker cannot exploit this from the internet without a pre-existing LAN-side presence; (2) the target must be running an affected FreeBSD version using libalias for NAT; and (3) RTSP traffic must be permitted outbound through the NAT, which is non-default in hardened environments that block non-essential application protocols at the firewall. |
| Impact | The CVSS 8.8 score reflects an adjacent-network, unauthenticated, no-interaction attack with full confidentiality, integrity, and availability impact - a profile that warrants urgent triage for any organization operating FreeBSD NAT gateways. The AV:A constraint is the single most important limiting factor: exploitation requires the attacker to already have a presence on the inside (LAN-side) of the NAT gateway, meaning internet-sourced exploitation is not directly possible. That said, even a mid-sized municipal IT team in rybnik running FreeBSD-based firewalls or routers (such as pfSense/OPNsense derivatives built on FreeBSD internals) should treat this as urgent given the kernel or root-level RCE outcome. No EPSS data is available in the provided intelligence, and no CISA KEV listing exists, which suggests exploitation has not yet been observed at scale. However, the simplicity of the attack (AC:L, PR:N, UI:N) and the severity of the impact - kernel RCE when using ipfw NAT - mean that the absence of KEV should not breed complacency. The SSVC technical impact is Total, and the attack is plausibly automatable once inside the adjacent network, increasing urgency for LAN-exposed deployments or shared hosting environments where internal threat actors cannot be fully trusted. |
| Exploit ScenarioDerived | An attacker with a foothold on a host inside a FreeBSD NAT perimeter (via malware, compromised VM, or physical access to the LAN) crafts outgoing RTSP packets with an oversized embedded SDP payload. When the NAT gateway's libalias RTSP handler rewrites the packet, it overflows the fixed stack buffer, overwriting the return address or stack canary. In the ipfw(4) NAT path, this yields code execution in the kernel; in the natd(8) path, it yields code execution as root. No public proof-of-concept has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Stack-based buffer overflow in FreeBSD's libalias RTSP handler exposes NAT gateways to kernel-level or root-level remote code execution from hosts inside the NAT perimeter. The RTSP protocol rewriter copies rewritten packet data into a fixed-size stack buffer with no length validation, allowing a crafted RTSP stream to overflow that buffer. When NAT is implemented via ipfw(4), exploitation can yield kernel code execution; when using natd(8), the impact is RCE in a process typically running as root. No public exploit code has been identified at time of analysis, and the CVE is not listed in CISA KEV.
RemediationAI
The primary remediation is to apply the vendor-released patches corresponding to the installed FreeBSD release: upgrade to FreeBSD 14.3-RELEASE-p16, 14.4-RELEASE-p7, 15.0-RELEASE-p11, or 15.1-RELEASE-p1 as appropriate. Patch application via freebsd-update(8) or rebuilding from patched sources is the definitive fix, per FreeBSD Security Advisory FreeBSD-SA-26:41.libalias.asc (https://security.freebsd.org/advisories/FreeBSD-SA-26:41.libalias.asc). As a compensating control where patching is immediately impractical, operators using natd(8) can disable RTSP handling by removing the relevant alias module or by using firewall rules to block RTSP traffic (TCP/UDP port 554 and related dynamic ports) at the perimeter before it reaches the NAT handler - note that this will break RTSP-based streaming through the NAT. Operators using ipfw(4) in-kernel NAT may similarly use ipfw rules to discard RTSP flows prior to NAT processing. Neither workaround eliminates the underlying vulnerability and both impair legitimate RTSP NAT traversal.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libalias is a FreeBSD packet aliasing library that performs protocol-aware NAT rewriting for a range of application-layer protocols, including RTSP (Real-Time Streaming Protocol, typically TCP port 554). For RTSP, libalias rewrites embedded address/port information in SDP bodies within outgoing packets. The vulnerability (CWE-121: Stack-based Buffer Overflow) arises because the RTSP handler allocates a fixed-size stack buffer for the rewritten packet, then copies the rewritten data into it without verifying that (a) the rewritten data fits the buffer, or (b) the resulting packet fits back inside the original packet's MTU bounds. libalias is consumed both by the ipfw(4) in-kernel NAT facility and by the userspace natd(8) daemon; both code paths share the same vulnerable RTSP handler. Affected CPE: cpe:2.3:a:freebsd:freebsd:*:*:*:*:*:*:*:* across FreeBSD 14.3, 14.4, 15.0, and 15.1 prior to their respective patch levels.
Know when Freebsd gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
S:C chosen because successful exploitation in the ipfw path yields kernel execution, crossing from user/natd authority into kernel security scope.
Primary rating from Vendor (freebsd).
CVSS VectorVendor: freebsd
Lifecycle Timeline
2DescriptionCVE.org
The RTSP handler in libalias rewrote outgoing packets into a fixed-length stack buffer without checking whether the rewritten data fit in the buffer, or whether the result fit back in the original packet.
A host sending crafted RTSP traffic from inside a NAT gateway using libalias can overflow a stack buffer, potentially achieving remote code execution in the kernel (when using ipfw(4) NAT) or in the natd(8) process (which generally runs as the root user).
Executive ViewAI
FreeBSD NAT gateway deployments face remote kernel and root-level code execution from internal network users through a flaw in RTSP protocol handling, with no vendor-released patch currently available. This threatens critical network perimeter infrastructure used to maintain network segmentation and security policies. Organizations must immediately restrict access to affected systems and disable RTSP rewriting to prevent potential network compromise and lateral movement.
Disable RTSP protocol rewriting in libalias where operationally feasible; restrict internal network access to NAT gateways through strict firewall rules limiting source IPs and subnets; implement network segmentation to isolate high-risk internal segments from NAT infrastructure; deploy enhanced monitoring and alerting on gateway activity and configuration changes; maintain detailed access logs to support incident investigation; develop incident response procedures specific to NAT gateway compromise.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and
The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess
Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due
The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEAS
An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used
The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w
In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1
EUVD-2026-62242
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB