Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEstablish authenticated BGP peer session
-
DeliveryEnable RFC 8654 Extended Messages on peer
-
ExploitCraft UPDATE with >2048 expanded ASNs in AS_PATH
-
ExecutionTrigger BIRD AS path mask filter evaluation
-
PersistOverflow fixed stack buffer in as_path_match()
-
ImpactCrash BIRD daemon, drop all managed routing sessions
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 | Three specific conditions must all be simultaneously present for exploitation: (1) RFC 8654 BGP Extended Messages must be explicitly enabled on the target BIRD instance - this is required to receive UPDATE messages large enough to carry more than 2048 expanded ASNs, and is not a default behavior in all deployments; (2) a BIRD routing filter must contain an AS path mask expression using the syntax 'bgp_path ~ [= ... =]', which is the specific code path that invokes as_path_match() with the fixed-size stack buffer - instances without such filter expressions are not vulnerable even if Extended Messages are enabled; (3) the attacker must control or compromise a BGP peer with an established session to the target BIRD instance, as the CVSS vector PR:L confirms that low-privilege authenticated peering is required and fully unauthenticated network exploitation is not possible. Exploitation impact is limited to availability (daemon crash/DoS) - no code execution, credential theft, or data exfiltration is indicated by available data. Well-managed BGP networks that already enforce AS_PATH length limits via inbound route policy are effectively mitigated against this attack. |
| Impact | The CVSS 6.3 score is derived from a vector of AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H. Attack complexity is rated High (AC:H) because three independent conditions must align simultaneously: RFC 8654 must be enabled, an AS path mask filter must be present in the BIRD configuration, and the attacker must control an established BGP peer session (PR:L confirms low-privilege authenticated access is required - pure unauthenticated exploitation is not supported by the vector). Impact is exclusively availability (A:H); no confidentiality or integrity compromise is indicated. No EPSS score was provided in the input data, so probabilistic exploitation likelihood cannot be assessed numerically. This CVE is not listed in the CISA KEV catalog, and no POC is identified, indicating no confirmed or publicly demonstrated active exploitation at time of analysis. Real-world priority is moderate-to-low for most operators: the three-condition prerequisite chain significantly limits the exploitable population, and established BGP best-practice filtering (rejecting abnormally long AS_PATH attributes) already mitigates the vector in well-managed environments. The vendor's explicit deprioritization of a fix is a meaningful signal that they assess operator-level controls as sufficient. However, environments running BIRD with Extended Messages enabled, active AS path mask filters, and untrusted or weakly-vetted BGP peers face a genuine, unpatched DoS risk. |
| Exploit ScenarioDerived | An attacker controlling an established BGP peering session with a BIRD instance that has RFC 8654 Extended Messages enabled crafts a BGP UPDATE message containing an AS_PATH attribute with more than 2048 individual ASNs (achievable within the extended message size budget). When BIRD evaluates this path against an AS path mask filter expression in a configured routing policy, parse_path() expands the segments without bounds checking, writing beyond the fixed 2049-entry stack array in as_path_match(), overwriting adjacent stack memory and crashing the BIRD daemon - disrupting all routing sessions and forwarding state managed by that instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 02, 2026
Stack-based buffer overflow in CZ.NIC BIRD Internet Routing Daemon through 2.19.0 allows an established BGP peer to crash the daemon by sending a crafted AS_PATH exceeding 2048 expanded ASNs when RFC 8654 Extended Messages are enabled and an AS path mask filter is active. The as_path_match() function in nest/a-path.c uses a fixed 2049-entry stack array while parse_path() expands AS_PATH segments without enforcing a corresponding capacity limit, causing a write beyond the stack buffer boundary and a daemon crash. No public exploit identified at time of analysis; notably, the vendor has explicitly declined to prioritize a fix, instead citing operator best-practice filtering as the expected mitigation.
RemediationAI
No vendor-released patch identified at time of analysis - the supplier has explicitly stated that a fix is not being prioritized, citing the expectation that network operators already reject routes with abnormally long AS_PATH attributes as standard BGP hygiene. Three specific compensating controls map directly to the three exploitation prerequisites: first, disable RFC 8654 BGP Extended Messages on BIRD instances where extended message support is not operationally required, which eliminates the ability to receive UPDATE messages long enough to trigger the overflow (trade-off: removes support for legitimate long BGP messages); second, remove or rewrite AS path mask filter expressions (bgp_path ~ [= ... =]) from BIRD configurations where feasible, which removes the code path invoking as_path_match() entirely (trade-off: loses AS path pattern matching capability); third, enforce strict inbound BGP route policy on all peer sessions - at the upstream router, edge filter, or RPKI/IRR layer - to reject UPDATE messages whose AS_PATH contains more than a safe threshold of ASNs (e.g., 200-400 ASNs is a common operational ceiling). This last control is the vendor's recommended mitigation and has no significant operational downside for well-maintained networks. Monitor the NEWS file at https://gitlab.nic.cz/labs/bird/-/blob/master/NEWS for any future patch release.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
BIRD's BGP implementation processes AS_PATH attributes via parse_path() and as_path_match() in nest/a-path.c. The as_path_match() function allocates a fixed-size stack array of 2049 pm_pos entries for mask pattern matching. RFC 8654 (BGP Extended Messages, RFC 8654) lifts the 4096-byte BGP UPDATE size cap, enabling AS_PATH attributes long enough to carry more than 2048 individual ASNs after segment expansion. Because parse_path() expands these segments without enforcing a bound against the fixed 2049-entry stack array, any expansion exceeding that limit overwrites adjacent stack frames. CWE-121 (Stack-based Buffer Overflow) identifies the root cause: a statically-sized stack allocation paired with unbounded input-driven expansion. The CPE cpe:2.3:a:nic:bird:*:*:*:*:*:*:*:* covers all versioned releases of the BIRD daemon, with the upper bound confirmed at 2.19.0. The CVSS scope change (S:C) reflects that a BIRD crash disrupts all routing sessions and dependent forwarding plane state managed by that daemon instance.
Know when Bird 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:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
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.
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.
BIRD through 2.0.7 does not provide functionality for password authentication of BGP peers. Rated medium severity (CVSS
BIRD Internet Routing Daemon 1.6.x through 1.6.7 and 2.x through 2.0.5 has a stack-based buffer overflow. Rated high sev
BIRD Internet Routing Daemon before 1.6.4 allows local users to cause a denial of service (stack consumption and daemon
Established BGP peers can bypass IPv6 FlowSpec validation in CZ.NIC BIRD when the receiving flow6 channel has unicast-ro
EUVD-2026-33980
GHSA-64c8-8qx9-25r7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB