Vulnerabilities in pkg:golang/github.com/osrg/gobgp/v3
PACKAGECVE-2025-43971 is a HIGH (CVSS 8.6) gobgp panics due to a vulnerability (CWE-193: Off-by-one Error) affecting Github.com/osrg/gobgp/v3 libraries in the Go ecosystem. The issue involves gobgp panics due to a zero value for softwareversionlen. Remediation is available by upgrading affected packages to version 3.35.0.
pkg:golang/github.com/osrg/gobgp/v3
Vulnerability advisories affecting package pkg:golang/github.com/osrg/gobgp/v3. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7m35-vw2c-696v | CVE-2025-43971 | HIGH | GoBGP panics due to a zero value for softwareVersionLen |
| GHSA-c5jg-wr5v-2wp2 | CVE-2025-43973 | MODERATE | GoBGP does not verify that the input length |
| GHSA-mfvv-mgf6-q25r | CVE-2025-43972 | MODERATE | GoBGP crashes in the flowspec parser |
| GHSA-hqhq-hp5x-xp3w | CVE-2025-43970 | MODERATE | GoBGP does not properly check the input length |
| GHSA-6rqv-5cg7-m4x3 | CVE-2023-46565 | HIGH | Buffer Overflow vulnerability in osrg gobgp |
CVE-2025-43971 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H).
How to Fix CVE-2025-43971
To remediate this vulnerability, upgrade all affected Github.com/osrg/gobgp/v3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/osrg/gobgp/v3 to 3.35.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/osrg/gobgp/v3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-43971, inspect your project dependencies for Github.com/osrg/gobgp/v3:
inspect dependencies for github.com/osrg/gobgp/v3
Analyze the terminal output to locate any version of Github.com/osrg/gobgp/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.35.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-193: Off-by-one Error, where a product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value. In Github.com/osrg/gobgp/v3, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-43971 Affected Github.com/osrg/gobgp/v3 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/osrg/gobgp/v3
|
Go |
≥ 3.11.0
< 3.35.0
|
3.35.0
|
References
Frequently Asked Questions
What is CVE-2025-43971?
Which Github.com/osrg/gobgp/v3 versions are affected?
What version fixes CVE-2025-43971?
Is github.com/osrg/gobgp/v3 affected?
What is the CVSS score of CVE-2025-43971?
What CWE is associated with CVE-2025-43971?
How can I check Go dependencies for CVE-2025-43971?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7m35-vw2c-696v",
"modified" : "2026-03-12T17:22:08Z",
"published" : "2025-04-21T03:30:18Z",
"aliases" : [ "CVE-2025-43971" ],
"summary" : "GoBGP panics due to a zero value for softwareVersionLen",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/osrg/gobgp/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.11.0"
}, {
"fixed" : "3.35.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-43971"
}, {
"type" : "WEB",
"url" : "https://github.com/osrg/gobgp/commit/08a001e06d90e8bcc190084c66992f46f62c0986"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/osrg/gobgp"
}, {
"type" : "WEB",
"url" : "https://github.com/osrg/gobgp/compare/v3.34.0...v3.35.0"
}, {
"type" : "WEB",
"url" : "https://security-tracker.debian.org/tracker/CVE-2025-43971"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-193" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-21T21:55:26Z",
"nvd_published_at" : "2025-04-21T01:15:45Z"
}
}