Security mailing lists by PureSourceCode

CVE-2026-45137

HIGH 8.2CVSS 3.1

Anchor: Program<'info, System> is not properly validated

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.

Published
27 May 2026
Last modified
26 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-20
Also known as
GHSA-c6rc-8jpp-2fgcRUSTSEC-2026-0144
Sources
NVDJSONOSV GHSA-c6rc-8jpp-2fgcJSONOSV RUSTSEC-2026-0144JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
OSV RustSec CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD anchor-lang anchor
cpe:2.3:a:anchor-lang:anchor:*:*:*:*:*:rust:*:*
>= 1.0.0, < 1.0.2 1.0.2
OSV crates.io anchor-lang >= 1.0.0, < 1.0.2 1.0.2

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 27 May 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 May 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.