Advisory

GHSA-429q-fhh4-r6hj

Also known as: RUSTSEC-2026-0146

Summary

Anchor: InterfaceAccount allows account substitution between unexpected types

Details

Impact
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.

Patches
https://github.com/solana-foundation/anchor/pull/4139 patched the issue and was released in 1.0.0-rc.2. Users should upgrade to the latest released version of Anchor 1.0.

References
Bug landed in: https://github.com/solana-foundation/anchor/pull/3837
Bug fixed in: https://github.com/solana-foundation/anchor/pull/4139

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-13 15:33 UTC
Modified
2026-05-19 20:30 UTC

Affected packages and fixes

anchor-lang

crates.io · All systems

Affected

  • introduced 1.0.0-rc.1, fixed 1.0.0-rc.2 (semver)

Fixed versions

1.0.0-rc.2

Fix

  • Fixed version 1.0.0-rc.2
    cargo update -p anchor-lang --precise 1.0.0-rc.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences