CVE-2025-43973: Github.com/osrg/gobgp GoBGP Does Not Verify That Vulnerability
MODERATECVE-2025-43973 is a MODERATE (CVSS 6.8) gobgp does not verify that vulnerability (CWE-193: Off-by-one Error) affecting Github.com/osrg/gobgp libraries in the Go ecosystem. The issue involves gobgp does not verify that the input length. Remediation is available by upgrading affected packages to version 3.35.0.
CVE-2025-43973 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H).
How to Fix CVE-2025-43973
To remediate this vulnerability, upgrade all affected Github.com/osrg/gobgp 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 to Latest secure release
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
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-43973, inspect your project dependencies for Github.com/osrg/gobgp:
inspect dependencies for github.com/osrg/gobgp
Analyze the terminal output to locate any version of Github.com/osrg/gobgp 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, 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-43973 Affected Github.com/osrg/gobgp Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/osrg/gobgp
|
Go |
|
|
|
github.com/osrg/gobgp/v3
|
Go |
< 3.35.0
|
3.35.0
|
References
Frequently Asked Questions
What is CVE-2025-43973?
Which Github.com/osrg/gobgp versions are affected?
What version fixes CVE-2025-43973?
Is github.com/osrg/gobgp affected?
Is github.com/osrg/gobgp/v3 affected?
What is the CVSS score of CVE-2025-43973?
What CWE is associated with CVE-2025-43973?
How can I check Go dependencies for CVE-2025-43973?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c5jg-wr5v-2wp2",
"modified" : "2025-04-21T21:55:39Z",
"published" : "2025-04-21T03:30:19Z",
"aliases" : [ "CVE-2025-43973" ],
"summary" : "GoBGP does not verify that the input length",
"details" : "An issue was discovered in GoBGP before 3.35.0. pkg/packet/rtr/rtr.go does not verify that the input length corresponds to a situation in which all bytes are available for an RTR message.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/osrg/gobgp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.35.0"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/osrg/gobgp/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.35.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-43973"
}, {
"type" : "WEB",
"url" : "https://github.com/osrg/gobgp/commit/5693c58a4815cc6327b8d3b6980f0e5aced28abe"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/osrg/gobgp"
}, {
"type" : "WEB",
"url" : "https://github.com/osrg/gobgp/compare/v3.34.0...v3.35.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-193" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-21T21:55:39Z",
"nvd_published_at" : "2025-04-21T01:15:45Z"
}
}