---
id: CVE-2026-42285
title: >-
  github.com/osrg/gobgp: GoBGP: Denial of Service due to specially crafted BGP
  UPDATE message (CVE-2026-42285)
summary: >-
  A flaw was found in GoBGP 4.4.0. A crafted BGP UPDATE with inconsistent
  attribute lengths mishandles the withdraw state transition in AdjRib.Update,
  causing a nil pointer dereference and full process crash. Fixed in GoBGP
  4.5.0.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe: CWE-476
vendor: Red Hat
product: github.com/osrg/gobgp/v4
affected:
  - 'github.com/osrg/gobgp/v4 >= 4.4.0, < 4.5.0'
patched:
  - github.com/osrg/gobgp/v4 4.5.0
published: '2026-05-07'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T18:02:31+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42285.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42285.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-42285'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2467711'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-42285'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-42285'
  - url: 'https://github.com/osrg/gobgp/releases/tag/v4.5.0'
  - url: 'https://github.com/osrg/gobgp/security/advisories/GHSA-p3w2-64xm-833j'
  - url: 'https://github.com/osrg/gobgp'
tags:
  - csaf
  - vex
  - red-hat
  - osv
  - go
epss: 0.00605
epssPercentile: 0.46657
aliases:
  - GHSA-p3w2-64xm-833j
  - GO-2026-5525
ecosystem: go
ingestedAt: '2026-07-25T19:08:11.721Z'
---

## Overview

A flaw was found in GoBGP 4.4.0. A crafted BGP UPDATE with inconsistent attribute lengths mishandles the withdraw state transition in AdjRib.Update, causing a nil pointer dereference and full process crash. Fixed in GoBGP 4.5.0.

## Vendor advisories

- **Red Hat VEX** · Important · updated 2026-09-18 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42285.json)

**github.com/osrg/gobgp: GoBGP: Denial of Service due to specially crafted BGP UPDATE message** — rated Important by Red Hat. Released 2026-05-07, updated 2026-09-18.

Not affected:

- Red Hat OpenShift Container Platform 4

## Remediation

Refer to the advisory for fix availability.

## Package advisory (CVE-2026-42285)

Affected packages:

- `github.com/osrg/gobgp/v4 >= 4.4.0, < 4.5.0`

Patched in:

- `github.com/osrg/gobgp/v4 4.5.0`

Source: https://osv.dev/vulnerability/GHSA-p3w2-64xm-833j
