CVE-2026-5123 Details
Description
A weakness has been identified in osrg GoBGP up to 4.3.0. This impacts the function DecodeFromBytes of the file pkg/packet/bgp/bgp.go. Executing a manipulation of the argument data[1] can lead to off-by-one. The attack may be launched remotely. Attacks of this nature are highly complex. The exploitability is said to be difficult. This patch is called 67c059413470df64bc20801c46f64058e88f800f. A patch should be applied to remediate this issue.
An off-by-one vulnerability has been identified in osrg GoBGP versions prior to 4.3.0. This issue affects the `DecodeFromBytes` function in the BGP packet handling module. The vulnerability arises from an incorrect calculation of slice boundaries when extracting the Software Version string from a BGP OPEN capability payload. This miscalculation allows for remote exploitation, although such attacks are considered complex and difficult to execute.
Users are advised to update to GoBGP version 4.3.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/osrg/gobgp/ | [email protected] | Product |
| https://github.com/osrg/gobgp/commit/67c059413470df64bc20801c46f64058e88f800f | [email protected] | Patch |
| https://github.com/osrg/gobgp/pull/3342 | [email protected] | Issue Tracking |
| https://vuldb.com/submit/780179 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/354155 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/354155/cti | [email protected] | Permissions RequiredVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-189 | Numeric Errors | [email protected] |
| CWE-193 | Off-by-one Error | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| osrg gobgp | < 4.4.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 6, 2026 | Initial Analysis | [email protected] |
| Mar 30, 2026 | New CVE Received | [email protected] |