{"id":"CVE-2026-45137","published":"2026-05-27T20:52:23Z","modified":"2026-05-28T13:05:18Z","title":"Anchor: Program<'info, System> is not properly validated","vendor":"solana-foundation","product":"anchor","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0028,"percentile":0.21004,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":4.2},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"solana-foundation","affectedVersions":[{"vendor":"solana-foundation","product":"anchor","versions":[">= 1.0.0, < 1.0.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-28T13:04:41.218046Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"anchor-lang","vulnerableRanges":[">=1.0.0, <1.0.2"],"patched":["1.0.2"],"from":["GHSA-c6rc-8jpp-2fgc","RUSTSEC-2026-0144"],"provenance":"source"}],"summary":{"text":"The Anchor framework for Solana programs (solana-foundation/anchor, versions 1.0.0 before 1.0.2) incorrectly validates the Program<'info, System> account type, so it accepts any executable program in place of the real system program. An attacker can exploit this over the network without authentication or user interaction by passing an arbitrary program as the system program account in a transaction to an Anchor program that makes system program CPI calls, potentially enabling arbitrary cross-program invocation or bypassing payment logic.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:05Z"},"euvd":{"id":"EUVD-2026-32665","exploited":false,"provenance":"source"}}