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

CVE-2026-42285: GoBGP has a panic in AdjRib.Update via malformed BGP Update message (Nil Pointer Dereference)

May 5, 2026 (updated May 8, 2026)

Remote Denial of Service (DoS) via Nil Pointer Dereference in BGP Update Processing An unauthenticated remote BGP peer can trigger a fatal panic in GoBGP by sending a specially crafted BGP UPDATE message. When the server receives a message with inconsistent attribute lengths, it improperly handles the internal state transition to a “withdraw” action, leading to a nil pointer dereference in the AdjRib.Update function. This causes the entire GoBGP process to crash, resulting in a complete loss of service availability.

References

  • github.com/advisories/GHSA-p3w2-64xm-833j
  • github.com/osrg/gobgp
  • github.com/osrg/gobgp/releases/tag/v4.5.0
  • github.com/osrg/gobgp/security/advisories/GHSA-p3w2-64xm-833j
  • nvd.nist.gov/vuln/detail/CVE-2026-42285

Code Behaviors & Features

Detect and mitigate CVE-2026-42285 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 starting from 4.4.0 before 4.5.0, version 4.4.0

Fixed versions

  • 4.5.0

Solution

Upgrade to version 4.5.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 00:18:53 +0000.