Intel

AIKIDO-2026-10790

anchor-lang is vulnerable to Improper Input Validation

Improper Input ValidationGHSA-c6rc-8jpp-2fgc Published May 8, 2026

82

High Risk

This Affects:

RUSTanchor-lang
1.0.0 - 1.0.1
Fixed in 1.0.2
Are you affected? Scan for Free

TL;DR

On-chain Anchor programs that expose Program<'info, System> assume Anchor rejects accounts that are not the real System Program. A validation mistake collapses that check with the permissive unit-type path so only executability is enforced. An attacker can pass a different executable program id while the program believes it invoked the system program. The corrected validation restores proper system program identity checks for that account type.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

anchor-lang is vulnerable to Improper Input Validation in versions 1.0.0 - 1.0.1.

How to fix this

Upgrade the anchor-lang library to the patch version.