Skip to main content
VulnerabilityPublished

CVE-2026-45137: solana-foundation anchor · Improper Input Validation

Affects solana-foundation anchorSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.2 High : upgrade to 1.0.2 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.0.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade anchor and solana-foundation/anchor to 1.0.2.

Affected software

ProductAffectedFixed in
solana-foundationanchorAffected
  • >=1.0.0 <1.0.2
Fixed in
  • 1.0.2
crates.iosolana-foundation/anchorpkg:cargo/solana-foundation/anchorOther threatsAffected
  • <1.0.2 >=1.0.0
Fixed in
  • 1.0.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Anchor users should upgrade to version 1.0.2 or later, where this vulnerability is fixed. Since the vendor advisory does not explicitly state the patch availability beyond the fix in 1.0.2, users should verify with the official solana-foundation channels for the latest remediation guidance. Programs built on affected versions should be reviewed for potential misuse of system program IDs and updated accordingly.

Description

Anchor is a framework providing several convenient developer tools for writing Solana programs. From 1.0.0 to before 1.0.2, an logic error causes anchor programs to accept any program id when requiring the system program id, causing false assumptions resulting in potential arbitrary cpi in programs that invoke system program instructions. In the TryFrom<&'a AccountInfo<'a>> implementation for Program<'a, T>, the id of T is compared with Pubkey::default() to check whether anchor should allow any executable account, or a specific account, because when no T is supplied, T defaults to (), which implements Id::id() by returning Pubkey::default(). This results in T = () and T = System (which has Pubkey::default() as the id) having the same behavior, both allow any executable account. Programs built with anchor assume that the anchor runtime verifies passed in programs of type Program<'a, System> are in fact the system program. This false assumption can lead to arbitrary CPI or payment bypassing when programs try making CPI calls to the system program using the passed in system program due to the fact that the attacker can pass in any program instead of the system program. This vulnerability is fixed in 1.0.2.

References

Community reviews

Loading reviews…