CVE-2026-49943: CWE-121 Stack-based Buffer Overflow in NIC BIRD
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.
AI Analysis
Technical Summary
The vulnerability exists in the as_path_match() function of BIRD's BGP implementation, which uses a fixed-size stack array of 2049 entries to match AS_PATH masks. The parse_path() function expands AS_PATH segments from received BGP UPDATE messages without enforcing a limit on the number of ASNs. When RFC 8654 BGP Extended Messages are enabled and a filter evaluates an AS path mask expression, a malicious or misconfigured BGP peer can send an AS_PATH attribute exceeding 2048 ASNs, causing parse_path() and as_path_match() to write beyond the fixed stack buffer. This leads to a stack-based buffer overflow and daemon crash, resulting in denial of service. The vendor's position is that network operators should already filter out such unusually long routes, and no official fix or patch is currently provided.
Potential Impact
Successful exploitation causes a denial of service by crashing the BIRD routing daemon. There is no indication of confidentiality or integrity impact. The CVSS score is 6.3 (medium severity) reflecting network attack vector, low privileges required, no user interaction, and impact limited to availability. No known exploits in the wild have been reported.
Mitigation Recommendations
No official patch or fix is currently available or prioritized by the vendor. The vendor advises that network operators should reject routes with unusually long AS_PATH attributes to prevent exploitation. Operators should implement route filtering policies to block excessively long AS_PATHs as a mitigation measure. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-49943: CWE-121 Stack-based Buffer Overflow in NIC BIRD
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.
CVSS v3.1
Score 6.3medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the as_path_match() function of BIRD's BGP implementation, which uses a fixed-size stack array of 2049 entries to match AS_PATH masks. The parse_path() function expands AS_PATH segments from received BGP UPDATE messages without enforcing a limit on the number of ASNs. When RFC 8654 BGP Extended Messages are enabled and a filter evaluates an AS path mask expression, a malicious or misconfigured BGP peer can send an AS_PATH attribute exceeding 2048 ASNs, causing parse_path() and as_path_match() to write beyond the fixed stack buffer. This leads to a stack-based buffer overflow and daemon crash, resulting in denial of service. The vendor's position is that network operators should already filter out such unusually long routes, and no official fix or patch is currently provided.
Potential Impact
Successful exploitation causes a denial of service by crashing the BIRD routing daemon. There is no indication of confidentiality or integrity impact. The CVSS score is 6.3 (medium severity) reflecting network attack vector, low privileges required, no user interaction, and impact limited to availability. No known exploits in the wild have been reported.
Mitigation Recommendations
No official patch or fix is currently available or prioritized by the vendor. The vendor advises that network operators should reject routes with unusually long AS_PATH attributes to prevent exploitation. Operators should implement route filtering policies to block excessively long AS_PATHs as a mitigation measure. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-06-02T16:16:51.394Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1f1079e29bf47b50e963b9
Added to database: 6/2/2026, 5:18:49 PM
Last enriched: 6/2/2026, 5:34:39 PM
Last updated: 6/3/2026, 4:41:46 AM
Views: 22
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.