Skip to main content

Buffa CVE-2026-55406

| EUVDEUVD-2026-44949 MEDIUM
Information Exposure (CWE-200)
2026-07-16 GitHub_M GHSA-9pwq-gcrx-wghh
5.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker supplies protobuf payload
  2. Delivery
    Application decodes into OwnedView, stores field reference
  3. Exploit
    OwnedView dropped, Bytes buffer freed
  4. Execution
    Stored reference dangles into freed heap
  5. Persist
    Application reads dangling reference
  6. Impact
    Freed heap contents disclosed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires calling application code that captures a view field reference (e.g., &str, &[u8]) from an OwnedView handle and holds that reference in a data structure or variable that outlives the OwnedView itself. The compiler does not reject this pattern prior to 0.7.0 because the Deref impl presented the field lifetimes as 'static. No network access, authentication, or attacker-controlled input is required for the memory-safety violation to occur - however, for information disclosure to be meaningful to an attacker, the freed heap region must be subsequently reallocated with sensitive data and the dangling reference must be read and surfaced (e.g., logged, returned in a response). Exploitation is limited to: (1) Rust applications directly using the buffa crate's OwnedView type, (2) code paths that store field references beyond the OwnedView's lifetime, and (3) Buffa versions before 0.7.0. Applications using only short-lived, stack-scoped borrows from OwnedView are not exposed even on vulnerable versions.

Impact

The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N) scores 5.9 (Medium), and the vendor's own CHANGELOG explicitly qualifies the exposure: 'in practice this required the calling application to deliberately store a field reference beyond the handle's lifetime, so the practical exposure is limited.' This is not a remotely triggerable flaw against a networked service endpoint; exploitation requires specific application-level code that retains OwnedView field references across the handle's drop point. The local attack vector and high-complexity/specific-attack-requirement ratings are consistent with this description. There is no CISA KEV listing and no public POC or exploit code identified at time of analysis, so EPSS risk is expected to be low. Real-world impact is bounded by whether downstream applications actually exhibit the misuse pattern; library consumers using idiomatic short-lived borrows are not exposed. The primary risk category is confidentiality (VC:H - freed heap contents may contain sensitive protobuf field data from prior requests), with limited integrity impact (VI:L - memory corruption is theoretically possible). No EPSS value was provided in the input data - exploitation probability cannot be quantified from available signals.

Exploit ScenarioDerived

An application decodes a protobuf message into an OwnedView<PersonView> and stores a field reference such as let name: &str = &*owned_view.name into a longer-lived struct or async task. When the OwnedView is subsequently dropped at end of scope, the underlying Bytes buffer is freed. The stored name reference now points into freed heap memory; a subsequent read of name yields freed heap contents, potentially disclosing data from a prior allocation such as a previous request's protobuf field values. No POC has been identified; the scenario requires the specific misuse pattern acknowledged by the vendor.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 16, 2026

Use-after-free in Buffa's OwnedView<V> type allows safe Rust calling code to hold field references that outlive the backing buffer, enabling read of freed heap memory and information disclosure. Affected are all Buffa releases prior to 0.7.0 (CPE: cpe:2.3:a:anthropics:buffa:*:*:*:*:*:*:*:*). The flaw is a soundness violation - no unsafe code in the caller is required - making it particularly insidious in a memory-safe language context. No public exploit identified at time of analysis and no CISA KEV listing; the CVSS 4.0 score of 5.9 reflects the high-complexity exploitation conditions acknowledged by the vendor.

RemediationAI

Vendor-released patch: Buffa 0.7.0, available at https://github.com/anthropics/buffa/releases/tag/v0.7.0. Upgrading to 0.7.0 is the definitive fix. The patch removes the Deref<Target = V> implementation from OwnedView<V> entirely - a breaking change - so callers previously using direct field access via Deref (e.g., owned_view.name) must migrate to either the new reborrow() method (let person = owned.reborrow(); person.name) or the per-message generated FooOwnedView wrapper types with &self-tied accessor methods (owned_view.name()). Both alternatives tie every borrow lifetime to the OwnedView handle, making the misuse pattern the compiler rejects rather than silently permits. Fields whose proto names collide with reserved OwnedView wrapper method names remain accessible via view() with a build-time CodeGenWarning::OwnedViewAccessorSuppressed emitted. If immediate upgrade is not possible, the workaround is to audit all callsites using OwnedView and ensure no field references are stored in data structures that outlive the OwnedView handle - this is a code-review control with no automated enforcement prior to 0.7.0.

Affected VersionsENISA

buffa < 0.7.0

Affected Packages

cargo buffa fix: 0.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Buffa is a pure-Rust Protocol Buffers implementation (cpe:2.3:a:anthropics:buffa:*:*:*:*:*:*:*:*) with first-class protobuf editions support, developed by Anthropics. The OwnedView<V> type is a self-referential struct designed to allow decoded protobuf views to satisfy 'static bounds required by tower services, BoxFuture<'static, _>, and tokio::spawn. Internally, OwnedView stores a bytes::Bytes reference-counted buffer alongside the decoded view, using a transmute in OwnedView::decode to extend the view's lifetime to &'static [u8]. The Deref<Target = V> implementation then surfaced this synthetic 'static lifetime directly to callers: field types like &'static str and &'static [u8] were visible to the borrow checker as genuinely 'static, permitting any calling code to store those references in longer-lived data structures without compiler objection. When the OwnedView was subsequently dropped and its Bytes buffer freed, those stored references became dangling pointers into freed heap memory. The assigned CWE-200 (Exposure of Sensitive Information) captures the information-disclosure outcome, but the root cause is more precisely a use-after-free (CWE-416) arising from unsound lifetime extension via transmute - the 'Buffer Overflow' tag in the advisory metadata is misleading and does not match the described mechanism.

Know when Buffa gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.7 MEDIUM

Local vector because misuse requires specific application code pattern; AC:H for the non-default usage condition; C:H for freed-heap disclosure; I:L for theoretical memory corruption; no availability impact.

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 16, 2026 - 18:18 EUVD

DescriptionCVE.org

Buffa is a pure-Rust Protocol Buffers implementation with first-class protobuf editions support. Prior to 0.7.0, a soundness bug in the OwnedView<V> type allowed safe Rust code to trigger a use-after-free: the OwnedView::decode constructor transmuted a borrowed slice to &'static [u8], and the Deref implementation exposed the promoted 'static lifetime on borrowed view fields (such as &'static str and &'static [u8]) to callers, so the borrow checker permitted those references to outlive the OwnedView; once the OwnedView was dropped and its backing buffer freed, the references became dangling, enabling memory corruption, information disclosure of freed heap contents, and cross-thread misuse without any unsafe code in the calling application. This issue is fixed in version 0.7.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche Rust-native protobuf library, limited production adoption
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy