GHSA-429q-fhh4-r6hj
Anchor: `InterfaceAccount` allows account substitution between unexpected types
GHSA-429q-fhh4-r6hj is a high vulnerability (CVSS 8.7) in anchor-lang, published May 8, 2026. No source lists public exploit code. Fixed in anchor-lang 1.0.0-rc.2.
- Severity
- 8.7 HighCVSS 4.0, GitHub Advisories
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
1.0.0-rc.2anchor-lang +1 more
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
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Affected packages
| Package | Affected | Fixed |
|---|---|---|
anchor-langcrates.io | 1.0.0-rc.1 to 1.0.0-rc.1 | 1.0.0-rc.2 |
anchor-langcrates.io | 1.0.0-rc.1 up to 1.0.0-rc.2 | 1.0.0-rc.2 |
What each source reports
GitHub Advisories Score used 8.7
Anchor: `InterfaceAccount` allows account substitution between unexpected types
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
- Record
GHSA-429q-fhh4-r6hj- CVSS 4.0
- 8.7 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 - Weakness
- CWE-20
- Updated
- 2026-11-02
OSV 8.7
Anchor: `InterfaceAccount` allows account substitution between unexpected types
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
- Record
GHSA-429q-fhh4-r6hj- CVSS 4.0
- 8.7 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 - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVRUSTSEC-2026-0146 8.7
`InterfaceAccount` allows account substitution between unexpected types
Affected versions of anchor-lang allowed InterfaceAccount to accept accounts
with an unexpected Anchor discriminator. A change to InterfaceAccount caused
checked deserialization to be bypassed for this account wrapper, so validation
proved only that the account owner matched one of the accepted interface owners.
It did not prove that the account data belonged to the expected account type.
Programs using InterfaceAccount rely on Anchor to enforce both owner and
account-type validation before the handler runs. With discriminator checking
disabled, an attacker could pass another account type owned by an accepted
program and have it deserialized through the expected interface wrapper. This
could bypass account-type assumptions made by the program and lead to incorrect
authorization or state handling.
The issue was fixed in anchor-lang 1.0.0-rc.2 by restoring checked
deserialization for InterfaceAccount::try_from, while keeping explicitly
unchecked behavior available only through the unchecked API. Users should
upgrade to anchor-lang 1.0.0-rc.2 or later.
- Record
RUSTSEC-2026-0146- CVSS 4.0
- 8.7 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 - Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
github.com/solana-foundation/anchor/security/advisories/GHSA-429q-fhh4-r6hj
github.com/solana-foundation/anchor/pull/3837
github.com/solana-foundation/anchor/pull/4139
github.com/solana-foundation/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d
github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj
rustsec.org/advisories/RUSTSEC-2026-0146.html