Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-429q-fhh4-r6hj — anchor-lang

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-20 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity high, availability none.

Weakness class

GHSA-429q-fhh4-r6hj is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.

Affected software

GHSA-429q-fhh4-r6hj is recorded against 1 package.

  • anchor-lang

Timeline and source

Published on 13 May 2026 and last revised on 19 May 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
rustsec.org (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector 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
CWE CWE-20
Public Exploit ✅ No
Source OSV
Published 2026-05-13
Updated 2026-08-20
Modified 2026-05-19
Fix URL N/A

Affected Packages

Software From version Fixed in
anchor-lang

Similar Threats

Site Security Check

Is anchor-lang part of your stack?

GHSA-429q-fhh4-r6hj is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.