CVE-2026-45137Anchor-lang Anchor
High 8.2 No auth needed
Follow: this CVE · Anchor-lang · Anchor-lang Anchor We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.2
- EPSS
- —
- Auth required
- No
- Published
- May 27, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Anchor.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | anchor-lang |
≥ 1.0.0 < 1.0.2 |
1.0.2 |
cargo update -p anchor-lang --precise 1.0.2 |
| crates.io | anchor-lang |
≥ 1.0.0 < 1.0.2 |
1.0.2 |
cargo update -p anchor-lang --precise 1.0.2 |
Per OSV / GitHub Advisories (GHSA-c6rc-8jpp-2fgc, RUSTSEC-2026-0144). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| anchor-lang | anchor | ≥ 1.0.0 < 1.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory Exploit