# CVE-2026-49838: GoBGP confederation validation panics on empty AS_PATH attribute

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/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.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-07-09T23:21:05.000Z
- Modified: 2026-09-16T13:42:46.970Z
- Also known as: GHSA-frrj-87jh-2772, GO-2026-5954
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

GoBGP is an open source Border Gateway Protocol (BGP) implementation in the Go Programming Language. Prior to version 4.7.0, GoBGP accepts a zero-length AS_PATH during UPDATE decoding and later panics while validating that attribute for a confederation eBGP peer. The vulnerable path is in the BGP UPDATE validator: a malformed UPDATE that should be rejected as a malformed AS_PATH instead reaches an unchecked `p.Value[0]` access, allowing a configured confederation eBGP peer to trigger a denial of service. Version 4.7.0 patches the issue.

(As written by CVE List.)

## Affected

- osrg gobgp: < 4.7.0
- github.com/osrg/gobgp/v4 (Go): before 4.7.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/osrg/gobgp/security/advisories/GHSA-frrj-87jh-2772> (advisory, web)
- <https://github.com/osrg/gobgp/commit/4a319a6c25630fb3cdbda3e9ccfe56e702bdaaa0> (fix)
- <https://github.com/osrg/gobgp> (package)

## Sources

- CVE List: [CVE-2026-49838](https://www.cve.org/CVERecord?id=CVE-2026-49838), CVE Terms of Use, modified 2026-09-11
- GitHub Advisory Database: [GHSA-frrj-87jh-2772](https://github.com/advisories/GHSA-frrj-87jh-2772), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5954](https://pkg.go.dev/vuln/GO-2026-5954), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-49838](https://nvd.nist.gov/vuln/detail/CVE-2026-49838), Public domain, modified 2026-09-16

---

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