# CVE-2026-49837: GoBGP: BGP OPEN capability parser may read capability values outside declared CapLen boundaries

- 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:H/A:N`
- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-07-09T23:20:57.000Z
- Modified: 2026-09-16T13:42:46.953Z
- Also known as: GHSA-gjrg-jjr3-56cm, GO-2026-5955
- Weaknesses: CWE-125
- 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. Versions prior to 4.6.0 contain a BGP OPEN capability parsing issue where several concrete capability decoders may parse data from the full remaining capability buffer instead of the slice bounded by the declared capability length, `CapLen`. A malformed BGP OPEN message can cause bytes from a following capability to be interpreted as part of the current capability. The most security-relevant case is the 4-octet AS capability, where a capability with `CapLen == 0` may cause the parser to read bytes from the following capability as the 4-octet AS value. This parsed value may later affect peer AS validation during BGP session establishment. Version 4.6.0 patches the issue.

(As written by CVE List.)

## Affected

- osrg gobgp: < 4.6.0
- github.com/osrg/gobgp/v4 (Go): before 4.6.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:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/osrg/gobgp/security/advisories/GHSA-gjrg-jjr3-56cm> (advisory, web)
- <https://github.com/osrg/gobgp/commit/f02ca397821f6ca182ef4eb492c3cbc459552d7c> (fix)
- <https://github.com/osrg/gobgp> (package)

## Sources

- CVE List: [CVE-2026-49837](https://www.cve.org/CVERecord?id=CVE-2026-49837), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-gjrg-jjr3-56cm](https://github.com/advisories/GHSA-gjrg-jjr3-56cm), CC-BY-4.0, modified 2026-07-24
- Go Vulnerability Database: [GO-2026-5955](https://pkg.go.dev/vuln/GO-2026-5955), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-49837](https://nvd.nist.gov/vuln/detail/CVE-2026-49837), Public domain, modified 2026-09-16

---

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