Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. buffa
  4. ›
  5. CVE-2026-55406

CVE-2026-55406: Buffa has a Use-After-Free in OwnedView via Unsound 'static Lifetime Promotion in Deref

August 28, 2026

A soundness bug in buffa’s OwnedView<V> 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. Because these references appeared to be 'static, the borrow checker permitted them to outlive the OwnedView; once the OwnedView was dropped and its backing buffer freed, those references became dangling, enabling memory corruption, information disclosure of freed heap contents, and cross-thread misuse — all without any unsafe code in the calling application. Users are advised to update to the latest patched version of buffa.

Thank you to hackerone.com/suul for reporting this issue.

References

  • github.com/advisories/GHSA-9pwq-gcrx-wghh
  • github.com/anthropics/buffa/commit/7dcf50a1a40eca6ed8d6c6dd59f4310aa0d68b0e
  • github.com/anthropics/buffa/pull/154
  • github.com/anthropics/buffa/releases/tag/v0.7.0
  • github.com/anthropics/buffa/security/advisories/GHSA-9pwq-gcrx-wghh
  • nvd.nist.gov/vuln/detail/CVE-2026-55406

Code Behaviors & Features

Detect and mitigate CVE-2026-55406 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.0

Fixed versions

  • 0.7.0

Solution

Upgrade to version 0.7.0 or above.

Impact 5.7 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-416: Use After Free

Source file

cargo/buffa/CVE-2026-55406.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:39 +0000.