# CVE-2026-45137: Anchor: Program<'info, System> is not properly validated

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T12:00:00.000Z
- Modified: 2026-10-26T12:10:00.130Z
- Also known as: GHSA-c6rc-8jpp-2fgc, RUSTSEC-2026-0144
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- solana-foundation anchor: >= 1.0.0, < 1.0.2
- anchor-lang (crates.io): from 1.0.0 before 1.0.2
- anchor-lang anchor: from 1.0.0 before 1.0.2

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`

## References

- <https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc> (exploit, vendor-advisory, web)
- <https://github.com/solana-foundation/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45137> (advisory)
- <https://github.com/solana-foundation/anchor> (package)
- <https://github.com/solana-foundation/anchor/releases/tag/v1.0.2> (web)
- <https://rustsec.org/advisories/RUSTSEC-2026-0144.html> (advisory, web)
- <https://crates.io/crates/anchor-lang> (package)
- <https://github.com/solana-foundation/anchor/commit/3eb1fb0427d4fed0e944b627aef76db651a93aab> (web)

## Sources

- CVE List: [CVE-2026-45137](https://www.cve.org/CVERecord?id=CVE-2026-45137), CVE Terms of Use, modified 2026-05-28
- GitHub Advisory Database: [GHSA-c6rc-8jpp-2fgc](https://github.com/advisories/GHSA-c6rc-8jpp-2fgc), CC-BY-4.0, modified 2026-06-09
- RustSec Advisory Database: [RUSTSEC-2026-0144](https://rustsec.org/advisories/RUSTSEC-2026-0144.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2026-45137](https://nvd.nist.gov/vuln/detail/CVE-2026-45137), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-45137 · Whole record: https://cve.day/CVE-2026-45137.json · Rebuilt by cve.day 2026-11-25T22:59:22.692Z
