CVE-2026-45137 Details
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.
A logic error in the Anchor framework for Solana programs, affecting versions 1.0.0 prior to 1.0.2, allows programs to accept any program ID when the system program ID is required. This flaw can lead to false assumptions and potential arbitrary cross-program invocations (CPI) in programs that use system program instructions. The issue arises because the default behavior of the program ID validation can be manipulated, allowing any executable account to be passed in instead of the intended system program. As a result, programs may inadvertently invoke instructions from unauthorized programs, bypassing expected payment processes and potentially exploiting other functionalities.
Users can update to Anchor version 1.0.2, which addresses this vulnerability by correcting the program ID validation logic.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc | CISA-ADP | Vendor AdvisoryExploit |
| https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc | [email protected] | Vendor AdvisoryExploit |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| anchor-lang anchor | >= 1.0.0, < 1.0.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 26, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 28, 2026 | CVE Modified | CISA-ADP |
| May 27, 2026 | New CVE Received | [email protected] |