Email me

Rust advisories / anchor-lang

Vulnerability HighRUSTSEC-2026-0144 · anchor-lang

RUSTSEC-2026-0144: `Program<System>` accepts arbitrary executable programs

Short answerA security vulnerability in the anchor-lang crate: `Program<System>` accepts arbitrary executable programs. High severity (CVSS 8.2). Fixed in 1.0.2: update to a fixed version.

Crateanchor-lang
TypeVulnerability
Affected versionsFrom 1.0.0 before 1.0.2.
Fixed in1.0.2
SeverityHigh, CVSS 8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
Published2026-05-07
Last changed2026-10-12
Also known asCVE-2026-45137, GHSA-c6rc-8jpp-2fgc

What to do

  1. See which version you have: cargo tree -i anchor-lang (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p anchor-lang. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example anchor-lang = "1.0.2") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Affected versions of anchor-lang did not properly validate accounts declared as Program<'info, System>. The generic Program<T> validation path used Pubkey::default() as a sentinel to decide whether any executable program should be accepted. Since the system program id is also the default pubkey, Program<'info, System> was treated like the untyped Program<'info> case and accepted any executable program account.

Programs commonly rely on Program<'info, System> to ensure that CPI calls and instruction builders target the real Solana system program. With the faulty validation, an attacker could supply another executable program where the system program was expected, causing downstream logic to make false assumptions about payments, account creation, or other system-program CPIs.

The issue was fixed in anchor-lang 1.0.2 by separating the typed Program<T> validation path from the untyped Program<()> path, so Program<'info, System> now checks the provided account key against the system program id. Users should upgrade to anchor-lang 1.0.2 or later.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for anchor-lang

Full security history of anchor-lang

Up next

Same crateanchor-lang: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ