CVE-2026-49943

MEDIUM

NIC Bird < 2.19.0 - Stack-based Buffer Overflow

Title source: rule
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-49943. PoCs published by 9Bakabaka.

AI-analyzed exploit summary 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.

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 (1)

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
devstral-2 · analyzed Jun 03, 2026 Full analysis →

Scores

CVSS v3 6.3
EPSS 0.0004
EPSS Percentile 14.1%
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