Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. anchor-lang
  4. ›
  5. GHSA-429q-fhh4-r6hj

GHSA-429q-fhh4-r6hj: Anchor: `InterfaceAccount` allows account substitution between unexpected types

May 13, 2026 (updated May 19, 2026)

Any uses of InterfaceAccount allows another unexpected account type to be passed, after https://github.com/solana-foundation/anchor/pull/3837 disabled discriminator checking for this type.

The bug was originally reported and fixed in https://github.com/solana-foundation/anchor/pull/4139, see that PR for more details.

References

  • github.com/advisories/GHSA-429q-fhh4-r6hj
  • github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj
  • github.com/solana-foundation/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d
  • github.com/solana-foundation/anchor/pull/3837
  • github.com/solana-foundation/anchor/pull/4139
  • github.com/solana-foundation/anchor/security/advisories/GHSA-429q-fhh4-r6hj
  • rustsec.org/advisories/RUSTSEC-2026-0146.html

Code Behaviors & Features

Detect and mitigate GHSA-429q-fhh4-r6hj 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 starting from 1.0.0-rc.1 before 1.0.0-rc.2

Fixed versions

  • 1.0.0-rc.2

Solution

Upgrade to version 1.0.0-rc.2 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

cargo/anchor-lang/GHSA-429q-fhh4-r6hj.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:24:02 +0000.