CVE-2026-45137Anchor-lang Anchor
Alta 8.2 Sin autenticación
Seguir: esta CVE · Anchor-lang · Anchor-lang Anchor Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 64
- CVSS 3.1
- 8.2
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 27 may 2026
- Actualizada
- 26 oct 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-20
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Anchor.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| 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 |
Según OSV / GitHub Advisories (GHSA-c6rc-8jpp-2fgc, RUSTSEC-2026-0144). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| anchor-lang | anchor | ≥ 1.0.0 < 1.0.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Vendor Advisory Exploit