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

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

July 9, 2026

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.

References

  • github.com/advisories/GHSA-frrj-87jh-2772
  • github.com/osrg/gobgp/security/advisories/GHSA-frrj-87jh-2772
  • nvd.nist.gov/vuln/detail/CVE-2026-49838

Code Behaviors & Features

Detect and mitigate CVE-2026-49838 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.7.0

Fixed versions

  • 4.7.0

Solution

Upgrade to version 4.7.0 or above.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-129: Improper Validation of Array Index

Source file

go/github.com/osrg/gobgp/v4/CVE-2026-49838.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:57 +0000.