Solana Anchor account substitution in InterfaceAccount

Severity: high · CVSS 8.7 · Published 2026-05-13

Anchor is a popular framework used to build secure smart contracts on the Solana blockchain. A vulnerability in the InterfaceAccount component allows an attacker to substitute a legitimate account with an unexpected one, potentially bypassing security checks. This could allow unauthorized parties to manipulate contract data or perform actions they are not permitted to do, impacting the integrity of the decentralized application.

Technologies: anchor-lang (crates.io). Vendors: crates.io.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
High severity, with a CVSS score of 8.7, published 13 May 2026.
Which products and versions are affected?
anchor-lang (crates.io) = 1.0.0-rc.1; Solana Foundation Anchor 1.0.0-rc.1.
Is there a fix for This vulnerability?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is This vulnerability attacked?
It is attacked over the network, in a software library.
Am I affected?
Check whether you run anchor-lang (crates.io) or Solana Foundation Anchor 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.

Technical details

A vulnerability exists in the `InterfaceAccount` type within the Anchor framework for Solana. The issue was introduced when discriminator checking— a mechanism used to verify that an account is of the expected type—was disabled for this specific component. An attacker can exploit this by passing an unexpected account type where an `InterfaceAccount` is required, leading to improper input validation (CWE-20). This allows for account substitution attacks that can compromise the integrity of smart contract state. The issue is fixed in version 1.0.0-rc.2 by re-enabling or correcting the validation logic.

Affected products

  • solana-foundation anchor-lang 1.0.0-rc.1

Timeline

  • 2026-05-08: disclosed: Vulnerability reported and fixed in pull request 4139
  • 2026-05-13: advisory: GitHub Advisory GHSA-429q-fhh4-r6hj published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.