Skip to content
OpenAdvisories
Medium · 6.3 Public exploit CVE-2026-49943 EUVD-2026-33980GHSA-64c8-8qx9-25r7

CZ.NIC BIRD Internet Routing Daemon through 2.19.0 contains a stack-based buffer overflow in the BGP AS_PATH mask matching implementation i…

Published Jun 2, 2026 · Updated Jun 2, 2026 · Assigned by mitre

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.

Affected products

VendorProductAffectedFixed
NIC BIRD ≤ 2.19.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 bird2 +1 No fix yet —
Debian 13 bird2 +1 No fix yet —
Debian 12 bird +1 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 bird2 +1 No fix yet —
Ubuntu 26.04 LTS bird2 +1 No fix yet —
Ubuntu 25.10 bird2 +1 No fix yet —
Ubuntu 24.04 LTS bird +1 No fix yet —
Ubuntu 22.04 LTS bird +1 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS bird +1 No fix yet —
Ubuntu 18.04 LTS bird No fix yet —
Ubuntu 16.04 LTS bird No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

References