# CVE-2026-42285: osrg GoBGP nil pointer dereference in AdjRib.Update

Source: https://junglewise.ai/threats/cve-2026-42285-osrg-gobgp-nil-pointer-dereference-in-adjrib-update  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-07. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2026-42285 · Severity: high · CVSS 7.5 · Published 2026-05-07

GoBGP is an open-source tool used to manage how internet traffic is routed between different networks. A vulnerability in version 4.4.0 allows an unauthenticated remote attacker to crash the GoBGP service by sending a specially crafted routing update message. This results in a complete loss of service availability, potentially disrupting network connectivity and routing operations until the service is manually restarted.

Technologies: [github.com/osrg/gobgp/v4 (Go)](https://junglewise.ai/threats/technologies/github-com-osrg-gobgp-v4), [Osrg Gobgp](https://junglewise.ai/threats/technologies/gobgp). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Osrg](https://junglewise.ai/threats/vendors/osrg).

## Quick answers

**Is CVE-2026-42285 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-42285 being exploited in the wild.

**How severe is CVE-2026-42285?** High severity, with a CVSS score of 7.5, published 7 May 2026.

**Which products and versions are affected?** github.com/osrg/gobgp/v4 (Go) SEMVER:introduced=4.4.0,fixed=4.5.0.

**Is there a fix for CVE-2026-42285?** Yes. github.com/osrg/gobgp/v4 (Go): upgrade to 4.5.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-42285 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-42285?** Check whether you run github.com/osrg/gobgp/v4 (Go) or Osrg Gobgp at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/osrg/gobgp/v4 (Go): upgrade to 4.5.0 or later

  ```sh
  go get github.com/osrg/gobgp/v4@v4.5.0
  ```


## Technical details

A nil pointer dereference exists in GoBGP version 4.4.0 within the AdjRib.Update function. The vulnerability is triggered when the server receives a BGP UPDATE message containing inconsistent attribute lengths. While the software correctly identifies the malformed attributes and attempts to treat the message as a 'withdraw' action, it fails to properly manage the internal state transition, leading to a nil pointer access in internal/pkg/table/adj.go. An unauthenticated remote peer can exploit this over the network to cause a fatal panic (SIGSEGV), resulting in a complete denial of service. This issue is resolved in version 4.5.0.

## Affected products

- osrg GoBGP 4.4.0

## Identifiers

- CVE-2026-42285
- GHSA-p3w2-64xm-833j
- GO-2026-5525

## Timeline

- 2026-04-30: patched: Fixed in version 4.5.0
- 2026-05-07: disclosed: Public disclosure of CVE-2026-42285

## References

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

## Related threats

- [osrg GoBGP denial of service via empty AS_PATH attribute](https://junglewise.ai/threats/cve-2026-49838-osrg-gobgp-denial-of-service-via-empty-as-path-attribute)
- [GoBGP out-of-bounds read in BGP OPEN capability parser](https://junglewise.ai/threats/cve-2026-49837-gobgp-out-of-bounds-read-in-bgp-open-capability-parser)
- [GoBGP integer underflow in BGPUpdate.DecodeFromBytes](https://junglewise.ai/threats/cve-2026-37462-gobgp-integer-underflow-in-bgpupdate-decodefrombytes)
- [GoBGP has Remote Denial of Service (Panic) in UpdatePathAttrs4ByteAs via Malformed BGP UPDATE](https://junglewise.ai/threats/cve-2026-41643-gobgp-has-remote-denial-of-service-panic-in)
- [GO-2026-5198 - GoBGP: Remote Denial of Service (Panic) via Malformed Well-known Path Attribute in github.com/osrg/gobgp](https://junglewise.ai/threats/cve-2026-41642-gobgp-has-remote-denial-of-service-panic-via-malformed-well-known)
