Skip to main content

BIRD Routing Daemon CVE-2026-49943

| EUVDEUVD-2026-33980 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-06-02 mitre GHSA-64c8-8qx9-25r7
6.3
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Establish authenticated BGP peer session
  2. Delivery
    Enable RFC 8654 Extended Messages on peer
  3. Exploit
    Craft UPDATE with >2048 expanded ASNs in AS_PATH
  4. Execution
    Trigger BIRD AS path mask filter evaluation
  5. Persist
    Overflow fixed stack buffer in as_path_match()
  6. Impact
    Crash 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

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

BIRD 0 ≤2.19.0

Affected Packages

euvd bird no fix

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

Vendor (mitre) PRIMARY 6.3 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.3 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
High

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

EPSS Score
0.0%
Top 88% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

Vendor StatusVendor

SUSE

Severity: Medium

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