# CVE-2026-5123: osrg GoBGP bgp.go DecodeFromBytes off-by-one

- Severity: Medium 6.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-03-30T15:15:14.229Z
- Modified: 2026-06-17T10:58:28.503Z
- Weaknesses: CWE-189, CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- osrg GoBGP: 4.0; 4.1; 4.2; 4.3.0; before 4.4.0

## Every score

- VulDB: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X`
- VulDB: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:3.0 3.7 Low `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:N/I:N/A:P/E:ND/RL:OF/RC:C`

## References

- <https://vuldb.com/vuln/354155> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/vuln/354155/cti> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/submit/780179> (third-party-advisory, vdb-entry)
- <https://github.com/osrg/gobgp/pull/3342> (issue-tracking, patch)
- <https://github.com/osrg/gobgp/commit/67c059413470df64bc20801c46f64058e88f800f> (patch)
- <https://github.com/osrg/gobgp/> (product)

## Sources

- CVE List: [CVE-2026-5123](https://www.cve.org/CVERecord?id=CVE-2026-5123), CVE Terms of Use, modified 2026-04-01
- NVD: [CVE-2026-5123](https://nvd.nist.gov/vuln/detail/CVE-2026-5123), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-5123 · Whole record: https://cve.day/CVE-2026-5123.json · Rebuilt by cve.day 2026-11-25T22:59:17.513Z
