# CVE-2026-49943: CZ.NIC BIRD Internet Routing Daemon through 2.19.0 contains a stack-based buffer overflow in the BGP ASPATH mask matching implementation in…

- Severity: Medium 6.3 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-06-02T16:16:52.033Z
- Modified: 2026-07-22T19:10:00.120Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- NIC BIRD: up to 2.19.0

## References

- <https://bird.nic.cz>
- <https://gitlab.nic.cz/labs/bird/-/blob/master/NEWS>

## Sources

- CVE List: [CVE-2026-49943](https://www.cve.org/CVERecord?id=CVE-2026-49943), CVE Terms of Use, modified 2026-06-02
- NVD: [CVE-2026-49943](https://nvd.nist.gov/vuln/detail/CVE-2026-49943), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-49943 · Whole record: https://cve.day/CVE-2026-49943.json · Rebuilt by cve.day 2026-11-25T22:59:23.587Z
