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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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 Sun, 08 Nov 2026 00:16:10 +0000.