- Accueil
- Vulnérabilités
- CVE-2026-45137
CVE-2026-45137
Anchor is a framework providing several convenient developer tools for writing Solana programs. From 1.0.0 to…
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Anchor-lang (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Anchor | de 1.0.0 (inclus) à 1.0.2 (exclu) |
— | NVD |
crates.io (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| anchor-lang | de 1.0.0 (inclus) à 1.0.2 (exclu) |
1.0.2 |
OSV |
Correctif
Mise à jour — crates.io/anchor-lang 1.0.2source officielle
Source : OSV
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- RUSTSEC-2026-0144 — `Program<System>` accepts arbitrary executable programs 7 mai 2026
Références
- https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgcVendor Advisory, Exploit
- https://crates.io/crates/anchor-langPACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0144.htmlADVISORY
- https://github.com/solana-foundation/anchor/commit/3eb1fb0427d4fed0e944b627aef76db651a93aabWEB
- https://github.com/solana-foundation/anchor/releases/tag/v1.0.2WEB
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- NVD
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N(CVSS 3.1, CNA:security-advisories@github.com)- Faiblesse
- CWE-20 · Validation d'entrée (générique)