Skip to content
DoS Write-up Intermediate

22x memory amp DoS in Anthropic's buffa protobuf decoder (CVE-2026-55407)

The buffa Rust protobuf decoder allocated heap memory in proportion to attacker-controlled wire data, with a group-amplification path that turned a small input into roughly 22 times its size in heap. An attacker could send a crafted message to exhaust memory and crash the process.

endorlabs.com

Published on endorlabs.com

When I pointed Endor Labs' AI SAST engine at buffa, Anthropic's Rust protobuf library, it flagged a vulnerable data flow I would not have prioritized from a quick read: an unknown-field decoder that allocates heap in proportion to attacker-controlled wire data. The engine called it a potential denial of service via…

The author, on endorlabs.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the decoder used an attacker-supplied length directly as an allocation size and allowed an unbounded number of nested unknown fields inside a group, with no per-message allocation budget.

Impact

A small unauthenticated message could exhaust process memory and cause a denial of service; severity depends on deployment, with supervised replicas limiting it to degraded throughput but file ingestion or default gRPC limits potentially causing a crash-loop.

What the attacker needed

Buffa < 0.8.0 with default unknown-field preservation; attacker can send a crafted protobuf message; decode path reachable from untrusted input

The fix

The fix landed in buffa and connectrpc 0.8.0, enforcing a configurable per-message unknown-field count limit defaulting to 1 million fields.

How it was found

  1. Build a payload containing a StartGroup tag, many zero-value varint fields, and an EndGroup tag.
  2. Send the payload to a server that decodes it with buffa using the default APIs.
  3. Observe the decoder allocate roughly 22 times the input size in heap memory.
  4. Run the server under a 256 MiB memory cap and see it killed with exit code 137.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When a program reads a message from the network, it must decide how much memory to set aside for the data inside. This library trusted a size value from the message and also allowed many small nested items to each take up a large fixed amount of memory, so a small message could use far more memory than its size suggests. An attacker could send such a message to make the program run out of memory and stop working.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.