{"id":"GHSA-429q-fhh4-r6hj","summary":"Anchor: `InterfaceAccount` allows account substitution between unexpected types","details":"### Impact\nAny 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.\n\nThe bug was originally reported and fixed in https://github.com/solana-foundation/anchor/pull/4139, see that PR for more details.\n\n### Patches\nhttps://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.\n\n### References\nBug landed in: https://github.com/solana-foundation/anchor/pull/3837\nBug fixed in: https://github.com/solana-foundation/anchor/pull/4139","aliases":["RUSTSEC-2026-0146"],"modified":"2026-05-19T20:30:23.692156902Z","published":"2026-05-13T15:33:46Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-05-13T15:33:46Z","nvd_published_at":null,"cwe_ids":["CWE-20"],"severity":"HIGH"},"references":[{"type":"WEB","url":"https://github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj"},{"type":"WEB","url":"https://github.com/solana-foundation/anchor/security/advisories/GHSA-429q-fhh4-r6hj"},{"type":"WEB","url":"https://github.com/solana-foundation/anchor/pull/3837"},{"type":"WEB","url":"https://github.com/solana-foundation/anchor/pull/4139"},{"type":"WEB","url":"https://github.com/solana-foundation/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d"},{"type":"PACKAGE","url":"https://github.com/solana-foundation/anchor"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2026-0146.html"}],"affected":[{"package":{"name":"anchor-lang","ecosystem":"crates.io","purl":"pkg:cargo/anchor-lang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0-rc.1"},{"fixed":"1.0.0-rc.2"}]}],"versions":["1.0.0-rc.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-429q-fhh4-r6hj/GHSA-429q-fhh4-r6hj.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}