---
id: CVE-2025-43971
aliases:
  - GHSA-7m35-vw2c-696v
  - GO-2025-3631
title: GoBGP panics due to a zero value for softwareVersionLen
summary: GoBGP panics due to a zero value for softwareVersionLen
severity: high
cvss: 8.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H'
vendor: osrg
product: github.com/osrg/gobgp/v3
ecosystem: go
affected:
  - 'github.com/osrg/gobgp/v3 >= 3.11.0, < 3.35.0'
patched:
  - github.com/osrg/gobgp/v3 3.35.0
published: '2025-04-21'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:57.149924378Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-7m35-vw2c-696v'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-43971'
  - url: >-
      https://github.com/osrg/gobgp/commit/08a001e06d90e8bcc190084c66992f46f62c0986
  - url: 'https://github.com/osrg/gobgp'
  - url: 'https://github.com/osrg/gobgp/compare/v3.34.0...v3.35.0'
  - url: 'https://security-tracker.debian.org/tracker/CVE-2025-43971'
tags:
  - osv
  - go
epss: 0.00545
epssPercentile: 0.44621
ingestedAt: '2026-09-12T03:13:01.764Z'
---

## Overview

An issue was discovered in GoBGP before 3.35.0 (introduced in v3.11.0). pkg/packet/bgp/bgp.go allows attackers to cause a panic via a zero value for softwareVersionLen.

## Affected packages

- `github.com/osrg/gobgp/v3 >= 3.11.0, < 3.35.0`

## Remediation

Upgrade to a patched release:

- `github.com/osrg/gobgp/v3 3.35.0`
