Anchor: Program<'info, System> is not properly validated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| solana-foundation | anchor | 1.0.0 to before 1.0.2 | 1.0.2 | Patch available | CNA |
| — | anchor-lang (crates.io) | 1.0.0 to before 1.0.2 | 1.0.2 | Patch available | GHSA-c6rc-8jpp-2fgc |
- anchor Vendorsolana-foundation Affected 1.0.0 to before 1.0.2 Fixed in 1.0.2 Patch available CNA
- anchor-lang (crates.io) Vendor— Affected 1.0.0 to before 1.0.2 Fixed in 1.0.2 Patch available GHSA-c6rc-8jpp-2fgc
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:anchor-lang:anchor:*:*:*:*:*:rust:*:* | 1.0.0 to before 1.0.2 | Vulnerable | Anchor-lang |
- cpe:2.3:a:anchor-lang:anchor:*:*:*:*:*:rust:*:* Versions 1.0.0 to before 1.0.2 Vulnerable ·Anchor-lang
Remediation
- Fix · CNA anchor (solana-foundation) Fixed in 1.0.2
- Fix · GHSA-c6rc-8jpp-2fgc anchor-lang (crates.io) Fixed in 1.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45137
- 2026-10-03 Alias added: GHSA-c6rc-8jpp-2fgc
References
Sources
- CVE-2026-45137 · CVE Program
- CVE-2026-45137 · NVD
- FIRST EPSS
- GHSA-c6rc-8jpp-2fgc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences