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 protocol in one paragraph

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
.

What GoBGP is

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,
    add or withdraw prefixes, inspect neighbours, query policy.
  • A Go library — the same engine, importable. Projects embed a BGP speaker
    the way they embed an HTTP server.

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 tiny example

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.

Why it is in the corpus

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:

  • CVE-2026-41642 — a nil pointer dereference triggered by a malformed
    UPDATE carrying an unrecognised path attribute marked Well-known. A remote
    peer crashes the process.
  • Issue #3308 — an index-out-of-range panic triggered by a crafted
    AS4_PATH/AS_PATH ordering, found by fuzzing.

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.

The shape of the series

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.