Security mailing lists by PureSourceCode

GHSA-429q-fhh4-r6hj

HIGH

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

Published
8 May 2026
Last modified
12 Oct 2026
Weakness
CWE-20
Also known as
RUSTSEC-2026-0146
Sources
OSVJSONOSV RUSTSEC-2026-0146JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub 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
OSV RustSec 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io anchor-lang >= 1.0.0-rc.1, < 1.0.0-rc.2 1.0.0-rc.2

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 May 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.