Amenazas en vivo

Todas las CVE / Anchor-lang

CVE-2026-45137Anchor-lang Anchor

Alta 8.2 Sin autenticación

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.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Anchor.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCó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)

FabricanteProductoVersiones
anchor-langanchor≥ 1.0.0 < 1.0.2

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.