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

- Severity: High (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-08T12:00:00.000Z
- Modified: 2026-10-12T18:00:08.341Z
- Also known as: RUSTSEC-2026-0146
- Weaknesses: CWE-20

## Description

### 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

(As written by GitHub Advisory Database.)

## Affected

- anchor-lang (crates.io): from 1.0.0-rc.1 before 1.0.0-rc.2

## Every score

- GitHub: CVSS:4.0 High `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`
- RustSec Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj> (web)
- <https://github.com/solana-foundation/anchor/security/advisories/GHSA-429q-fhh4-r6hj> (web)
- <https://github.com/solana-foundation/anchor/pull/3837> (web)
- <https://github.com/solana-foundation/anchor/pull/4139> (web)
- <https://github.com/solana-foundation/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d> (web)
- <https://github.com/solana-foundation/anchor> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0146.html> (advisory, web)
- <https://crates.io/crates/anchor-lang> (package)
- <https://github.com/otter-sec/anchor/pull/3837> (web)
- <https://github.com/otter-sec/anchor/pull/4139> (web)
- <https://github.com/otter-sec/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d> (web)

## Sources

- GitHub Advisory Database: [GHSA-429q-fhh4-r6hj](https://github.com/advisories/GHSA-429q-fhh4-r6hj), CC-BY-4.0, modified 2026-05-19
- RustSec Advisory Database: [RUSTSEC-2026-0146](https://rustsec.org/advisories/RUSTSEC-2026-0146.html), CC0-1.0, modified 2026-10-12

---

Page: https://cve.day/GHSA-429q-fhh4-r6hj · Whole record: https://cve.day/GHSA-429q-fhh4-r6hj.json · Rebuilt by cve.day 2026-11-25T22:56:43.356Z
