Anchor: `InterfaceAccount` allows account substitution between unexpected types
Description
Published to the GitHub Advisory Database
May 13, 2026
Reviewed
May 13, 2026
Last updated
May 19, 2026
Impact
Any uses of
InterfaceAccountallows another unexpected account type to be passed, after otter-sec/anchor#3837 disabled discriminator checking for this type.The bug was originally reported and fixed in otter-sec/anchor#4139, see that PR for more details.
Patches
otter-sec/anchor#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: otter-sec/anchor#3837
Bug fixed in: otter-sec/anchor#4139
References