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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-30 · Modified: 2026-04-01
- Aliases: UBUNTU-CVE-2026-5123, DEBIAN-CVE-2026-5123
- Record: https://cvemate.com/vulnerability/CVE-2026-5123 · JSON: https://cvemate.com/vulnerability/CVE-2026-5123/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 0.475%, percentile 42.671%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian gobgp (Debian): All versions (No fix recorded) \| \< 4.4.0-1
- ubuntu gobgp (Ubuntu): All versions (No fix recorded)
- osrg gobgp: 4.0 \| 4.1 \| 4.2 \| 4.3.0 \| \< 4.4.0

## 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/>
- <https://ubuntu.com/security/CVE-2026-5123>
- <https://www.cve.org/CVERecord?id=CVE-2026-5123>
- <https://security-tracker.debian.org/tracker/CVE-2026-5123>

---

Data as of 2026-12-05T14:42:46.046Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
