GHSA-429q-fhh4-r6hj

Suggest an improvement
Source
https://github.com/advisories/GHSA-429q-fhh4-r6hj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-429q-fhh4-r6hj/GHSA-429q-fhh4-r6hj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-429q-fhh4-r6hj
Aliases
Published
2026-05-13T15:33:46Z
Modified
2026-05-19T20:30:23Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Anchor: `InterfaceAccount` allows account substitution between unexpected types
Details

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

Database specific
{
    "cwe_ids":  [
        "CWE-20"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-13T15:33:46Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

crates.io / anchor-lang

Package

Name
anchor-lang
View open source insights on deps.dev
Purl
pkg:cargo/anchor-lang

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0-rc.1
Fixed
1.0.0-rc.2

Affected versions

1.*
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"