CVE-2026-49943

MEDIUM

NIC Bird < 2.19.0 - Stack-based Buffer Overflow

Title source: rule
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2026-49943. PoCs published by cxwx, 9Bakabaka.

AI-analyzed exploit summary This PoC exploits a stack-based buffer overflow in BIRD Internet Routing Daemon's BGP AS_PATH mask matching implementation (CVE-2026-49943) by sending a crafted BGP UPDATE message with an excessively long AS_PATH (2295 ASNs), triggering a crash in the `as_path_match()` function.

Description

CZ.NIC BIRD Internet Routing Daemon through 2.19.0 contains a stack-based buffer overflow in the BGP AS_PATH mask matching implementation in nest/a-path.c. The as_path_match() function uses a fixed-size stack array of 2048 + 1 pm_pos entries, while parse_path() expands AS_PATH segments from a received BGP UPDATE without enforcing a corresponding capacity limit. When RFC 8654 BGP Extended Messages are enabled and a BIRD filter evaluates an AS path mask expression such as "bgp_path ~ [= ... =]", an established BGP peer can send a long AS_PATH containing more than 2048 expanded ASNs. This causes parse_path()/as_path_match() to write beyond the fixed stack buffer, resulting in a crash of the daemon. NOTE: reportedly, the Supplier's position is that a fix is not being prioritized because all network operators should already be rejecting routes with unusually long attributes.

Exploits (2)

nomisec WORKING POC
by cxwx · poc
https://github.com/cxwx/CVE-2026-49943-PoC

This PoC exploits a stack-based buffer overflow in BIRD Internet Routing Daemon's BGP AS_PATH mask matching implementation (CVE-2026-49943) by sending a crafted BGP UPDATE message with an excessively long AS_PATH (2295 ASNs), triggering a crash in the `as_path_match()` function.

Classification
Working Poc 98%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: BIRD 2.18 (potentially other BIRD 2.x versions)
Auth required
Prerequisites: Established BGP peer session with the target · BGP Extended Messages (RFC 8654) enabled on the target · Target evaluates an AS path mask filter (e.g., `bgp_path ~ [= ... =]`)
mistral-large-3 · analyzed Jul 20, 2026 Full analysis →
github WORKING POC
by 9Bakabaka · pythonpoc
https://github.com/9Bakabaka/CVE-2026-49943-PoC

This repository contains a functional PoC exploit for CVE-2026-49943, a stack-based buffer overflow in BIRD/BIRD2's BGP AS_PATH mask matching. The exploit sends a maliciously crafted BGP UPDATE message with an overly long AS_PATH to trigger a stack overflow, causing the BIRD daemon to crash.

Classification
Working Poc 95%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: BIRD 2.18 (and potentially other BIRD 2.x versions)
Auth required
Prerequisites: Established BGP peer session · BGP Extended Messages (RFC 8654) enabled · Target configuration must evaluate AS path mask filters
mistral-large-3 · analyzed Jun 03, 2026 Full analysis →

Scores

CVSS v3 6.3
EPSS 0.0030
EPSS Percentile 22.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-121
Status published
Products (1)
NIC/BIRD < 2.19.0
Published Jun 02, 2026
Tracked Since Jun 02, 2026