Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/osrg/gobgp/v4
  4. ›
  5. CVE-2026-49837

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

July 9, 2026

GoBGP contains 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.

References

  • github.com/advisories/GHSA-gjrg-jjr3-56cm
  • github.com/osrg/gobgp/security/advisories/GHSA-gjrg-jjr3-56cm
  • nvd.nist.gov/vuln/detail/CVE-2026-49837

Code Behaviors & Features

Detect and mitigate CVE-2026-49837 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.6.0

Fixed versions

  • 4.6.0

Solution

Upgrade to version 4.6.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

go/github.com/osrg/gobgp/v4/CVE-2026-49837.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:39 +0000.