GHSA-429q-fhh4-r6hj json
Anchor: `InterfaceAccount` allows account substitution between unexpected types
published 6mo ago modified last mo. also RUSTSEC-2026-0146
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### 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
Patch / fix
- crates.io anchor-lang 1.0.0-rc.2
- github.com/solana-foundation/anchor@26ef369 commit
- github.com/otter-sec/anchor@26ef369 commit
- github.com/solana-foundation/anchor#3837 pull request
- github.com/solana-foundation/anchor#4139 pull request
- github.com/otter-sec/anchor#3837 pull request
- github.com/otter-sec/anchor#4139 pull request
Is GHSA-429q-fhh4-r6hj in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | anchor-lang | >=1.0.0-rc.1, <1.0.0-rc.2 |
1.0.0-rc.2 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/solana-foundation/anchor/pull/3837
web
-
github.com
/solana-foundation/anchor/pull/4139
web
-
github.com
/solana-foundation/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d
web
-
github.com
/otter-sec/anchor/pull/3837
web
-
github.com
/otter-sec/anchor/pull/4139
web
-
github.com
/otter-sec/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d
web
-
github.com
/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj
web
-
github.com
/solana-foundation/anchor/security/advisories/GHSA-429q-fhh4-r6hj
web
-
github.com
/solana-foundation/anchor
package
-
rustsec.org
/advisories/RUSTSEC-2026-0146.html
web, advisory
-
crates.io
/crates/anchor-lang
package
Sources
- GitHub Advisory GHSA-429q-fhh4-r6hj
- OSV RUSTSEC-2026-0146
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.