Skip to main content

FreeBSD libalias EUVDEUVD-2026-62242

| CVE-2026-49420 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-08-19 freebsd
8.8
CVSS 3.1 · Vendor: freebsd
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Establish LAN-side host access
  2. Delivery
    Craft malformed RTSP packet with oversized SDP payload
  3. Exploit
    Send outbound through FreeBSD NAT gateway
  4. Execution
    libalias RTSP handler rewrites packet into fixed stack buffer
  5. Persist
    Stack buffer overflow corrupts return address
  6. Impact
    Kernel (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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

FreeBSD 15.0-RELEASE <p11
FreeBSD 15.1-RELEASE <p1
FreeBSD 14.4-RELEASE <p7
FreeBSD 14.3-RELEASE <p16

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

Vendor (freebsd) PRIMARY 8.8 HIGH
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.6 CRITICAL

S:C chosen because successful exploitation in the ipfw path yields kernel execution, crossing from user/natd authority into kernel security scope.

3.1 AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (freebsd).

CVSS VectorVendor: freebsd

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVE Published
Aug 19, 2026 - 05:20 cve.org
HIGH 8.8
CVE Published
Aug 19, 2026 - 05:20 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
FreeBSD widely used in firewalls, routers, and storage appliances
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2012-0217 HIGH POC
7.2 Jun 12

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

CVE-2025-14558 HIGH POC
7.2 Mar 09

The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess

CVE-2020-1967 HIGH POC
7.5 Apr 21

Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due

CVE-2013-4854 HIGH POC
7.8 Jul 29

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

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2013-2171 MEDIUM POC
6.9 Jul 02

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

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2016-5766 HIGH POC
8.8 Aug 07

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used

CVE-2016-1879 HIGH POC
7.5 Jan 29

The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w

CVE-2020-7457 HIGH POC
8.1 Jul 09

In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy