# CVE-2026-55407: Anthropics Buffa memory exhaustion in protobuf decoder

Source: https://junglewise.ai/threats/cve-2026-55407-anthropics-buffa-memory-exhaustion-in-protobuf-decoder  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-16. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-55407 · Severity: medium · CVSS 4 · Published 2026-07-16

Buffa is a Rust protobuf code generator used to serialize and deserialize message data. The library's default behavior of preserving unknown fields in decoded messages allows an attacker to send specially crafted protobuf payloads that consume excessive heap memory without triggering size limits. A small malicious message can force the decoder to allocate many times its own size in memory, enabling an unauthenticated remote attacker to crash services through memory exhaustion with minimal network traffic.

Vendors: [Anthropic](https://junglewise.ai/threats/vendors/anthropic), [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2026-55407 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-55407 being exploited in the wild.

**How severe is CVE-2026-55407?** Medium severity, with a CVSS score of 4, published 16 July 2026.

**Which products and versions are affected?** Anthropic Buffa < 0.8.0; buffa (crates.io) SEMVER:introduced=0,fixed=0.8.0.

**Is there a fix for CVE-2026-55407?** Yes. buffa (crates.io): upgrade to 0.8.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-55407 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-55407?** Check whether you run Anthropic Buffa or buffa (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- buffa (crates.io): upgrade to 0.8.0 or later

  ```sh
  cargo update -p buffa
  ```


## Technical details

The decode_unknown_field function in buffa's protobuf decoder fails to enforce allocation limits on heap memory consumed during decoding of unknown fields from untrusted protobuf messages. By default, generated code preserves unknown fields, and the top-level message size cap does not account for in-decode memory amplification. Nested unknown fields within a StartGroup can achieve approximately 22× amplification (e.g., a 64 MiB input forcing ~1.4 GB allocation); length-delimited unknown fields can be sized arbitrarily, offering even greater amplification. The vulnerability is reachable from default decode APIs without authentication or user interaction. Version 0.8.0 fixes this by enforcing per-message unknown field count limits (default 1 million fields, ~40 MiB overhead). Mitigation for older versions includes setting preserve_unknown_fields=false or implementing external size limits (e.g., connectrpc's 4 MiB default still allows ~88 MiB amplification).

## Affected products

- Anthropics buffa < 0.8.0

## Identifiers

- CVE-2026-55407
- GHSA-f9qc-qg88-7pq5

## Timeline

- 2026-07-01: disclosed
- 2026-07-16: advisory
- 2026-08-28: patched

## References

- [https://api.github.com/users/p80n-sec](https://api.github.com/users/p80n-sec)
- [https://github.com/p80n-sec](https://github.com/p80n-sec)
- [https://api.github.com/users/p80n-sec/gists%7B/gist_id%7D](https://api.github.com/users/p80n-sec/gists%7B/gist_id%7D)
- [https://api.github.com/users/p80n-sec/repos](https://api.github.com/users/p80n-sec/repos)
- [https://avatars.githubusercontent.com/u/33259962?v=4](https://avatars.githubusercontent.com/u/33259962?v=4)
- [https://api.github.com/users/p80n-sec/events%7B/privacy%7D](https://api.github.com/users/p80n-sec/events%7B/privacy%7D)

## Related threats

- [Anthropics Buffa use-after-free in OwnedView](https://junglewise.ai/threats/cve-2026-55406-anthropics-buffa-use-after-free-in-ownedview)
