GoBGP is a BGP speaker written in Go — one static binary, a gRPC API, and a library you can embed in another program. It speaks the protocol that glues the internet's networks together, which means every message it parses was written by someone else. This series is about the UPDATE it should have rejected.

GoBGP is a BGP implementation written in Go: one static binary that speaks
the protocol that glues the internet's networks together. This series is about
what happens when that speaker meets a message it should have rejected.
The internet is not one network. It is tens of thousands of independent
networks — autonomous systems — that agree to carry each other's traffic. The
agreement is not a contract; it is a routing table. Each network announces the
address blocks it can reach, and the network next door decides whether to pass
that announcement on.
BGP is the protocol those networks speak. It is a path-vector protocol: an
announcement carries not just a destination but the list of autonomous systems
the path traversed. A router reads the list, applies policy, picks its best
route, and advertises a version of it onward. The loop of announcements is what
makes a global table converge.
The software that does this — that holds sessions with peers, parses their
messages, stores their routes, applies policy and re-advertises — is a BGP
speaker.
GoBGP is an open-source BGP speaker written in Go. It ships as:
gobgpd — the daemon. It holds sessions, maintains the RIB, runs policy.gobgp — the CLI. It talks to the daemon over a gRPC API: show routes,The design choice that matters for this series is the last one. GoBGP was built
to be programmable infrastructure: one static binary, a modern language
toolchain, a structured API instead of a config file and a CLI parser. That is
why it turns up in places where a full router operating system would be absurd —
a container, a Kubernetes controller, a lab VM, an internet exchange's route
server.
A peer opens a TCP session to port 179 and the two speakers exchange OPEN
messages. Then the peer sends an UPDATE:
prefix 203.0.113.0/24
AS_PATH 64500 64501
NEXT_HOP 192.0.2.1
GoBGP parses the UPDATE, validates the attributes, runs its import policy,
stores the route, and — if the route wins — re-advertises it to other peers
with its own AS prepended. One message in, a decision out. The whole job is
that loop, repeated at the scale of a global table.
The message that breaks the loop, in this series, is also an UPDATE. It is
23 bytes long.
The corpus scores GoBGP at 6.45 — rank 11 of 26, with product coverage
C=2 and uncovered risk 2.15. The category is SEC+AVAIL: the bug does not
steal data or forge routes. It kills the daemon.
Two defects are recorded:
The corpus reviewed both as open. That verdict is now superseded: the issue
was fixed in 4.3.0 (28 February 2026) and the CVE in 4.4.0 (1 April
2026). The series carries the correction, because the version story is half
the lesson.
Part 2 places GoBGP in the network — who runs it, and what depends on it.
Part 3 walks its uses, from route server to embedded library. Part 4 compares
it honestly with FRR, BIRD and OpenBGPD. Part 5 opens the UPDATE parser.
Part 6 climbs the ladder of smaller parser failures. Part 7 takes the CVE
apart. Part 8 maps the versions and the silent-patch problem. Part 9 walks the
crash chain. Part 10 is the remediation ladder, including the five-line change
that turns a process kill into a dropped message.
The through-line is not one bug. It is a contract: what a network daemon
should do when a peer sends it something impossible.

Next: Part 2 — the peering LAN's quiet dependency: one daemon, hundreds of
sessions, and a shared fate.