Incorrect Authorization Affecting anchor-lang package, versions >=1.0.0-rc.1 <1.0.0-rc.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-ANCHORLANG-16757924
  • published19 May 2026
  • disclosed8 May 2026
  • creditacheroncrypto

Introduced: 8 May 2026

New CVE NOT AVAILABLE CWE-863  (opens in a new tab)

How to fix?

Upgrade anchor-lang to version 1.0.0-rc.2 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization via the InterfaceAccount process. An attacker can gain unauthorized access or manipulate state by providing an account with a valid owner but an unexpected type, exploiting the lack of discriminator validation during deserialization.

CVSS Base Scores

version 4.0
version 3.1