CVE-2026-5122 Details
Description
A security flaw has been discovered in osrg GoBGP up to 4.3.0. This affects the function DecodeFromBytes of the file pkg/packet/bgp/bgp.go of the component BGP OPEN Message Handler. Performing a manipulation of the argument domainNameLen results in improper access controls. The attack may be initiated remotely. A high degree of complexity is needed for the attack. The exploitability is reported as difficult. The patch is named 2b09db390a3d455808363c53e409afe6b1b86d2d. It is suggested to install a patch to address this issue.
A vulnerability exists in osrg GoBGP versions through 4.3.0, specifically within the BGP OPEN message handler. The issue arises in the 'DecodeFromBytes' function of 'pkg/packet/bgp/bgp.go', where the 'domainNameLen' parameter is not properly enforced. This flaw allows for improper access control, as the parser reads all remaining bytes in the capability buffer as the domain name, potentially including unrelated trailing data. The vulnerability can be exploited remotely, although it requires a high level of complexity.
Users are advised to update to GoBGP version 4.3.1 or later, where this vulnerability has been patched.
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 Mar 30, 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/2b09db390a3d455808363c53e409afe6b1b86d2d | [email protected] | Patch |
| https://github.com/osrg/gobgp/pull/3343 | [email protected] | Issue Tracking |
| https://vuldb.com/submit/780124 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/354154 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/354154/cti | [email protected] | Permissions RequiredVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-266 | Incorrect Privilege Assignment | [email protected] |
| CWE-284 | Improper Access Control | [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 8, 2026 | Initial Analysis | [email protected] |
| Mar 30, 2026 | New CVE Received | [email protected] |