llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · altcha-lib

GHSA-RX38-P542-V527

PoW v2 fallback verification does not enforce keyPrefix

Parche disponible
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche6 versionesPrimer parche a -3 d de la divulgación
Exposición113 dDesde la divulgación, 30 jul 2026, 1:20 a. m.
Detección111 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 2.3.2 +1
Parche 2.0.1
Monitoreo
Detectada +1
27 jul 26
30 jul 26
2 nov 26
18 nov 26
20 nov 26
27 jul 26
25 ago 26
23 sept 26
22 oct 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.3.2 altcha-lib · -3 d desde divulgación
Remediación Parche 2.1.0 altcha · -3 d desde divulgación
Divulgación Publicada GHSA-RX38-P542-V527 divulgada · CVSS 7.5 (GitHub)
Remediación Parche 2.0.1 altcha · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

In the fallback branch of `verifySolution` (used whenever a challenge has no `keySignature`, or the verifier doesn't have the matching `hmacKeySignatureSecret`), the derived key was checked only for equality against the value re-derived from the submitted counter. The required `keyPrefix` was never checked. This lets a client submit any counter with a single KDF execution and pass verification, entirely skipping the proof-of-work search the prefix is meant to enforce.

Impact

The fallback path covers:
- Any probabilistic challenge.
- Deterministic-mode challenges created without `hmacKeySignatureSecret`.
- Deterministic-mode challenges where the verifier omits `hmacKeySignatureSecret` even though it was set at creation.

The recommended fast path (deterministic mode with a matching `hmacKeySignatureSecret` set on both creation and verification) was unaffected.

Patches
  • Dart Lib v0.3.1 https://github.com/altcha-org/altcha-lib-dart/commit/4308e5d3f8fe8142b44084b40a6e37dffb415687
  • Elixir Lib v2.0.1 https://github.com/altcha-org/altcha-lib-ex/commit/52f8e8982c6162139c1372e5c358681f0696ae2e
  • Java Lib v2.0.3 https://github.com/altcha-org/altcha-lib-java/commit/7c736be3df59e9444966b161c8035c3f4557c9a2
  • TS Lib v2.3.2 https://github.com/altcha-org/altcha-lib/commit/e2a6daf192a3c242d5638bc49621a12f46afc6ed
  • Python Lib v2.1.0 https://github.com/altcha-org/altcha-lib-py/commit/2f70cdbfbaf3d23f54c98ab3277a94486a7401cb
  • Ruby Lib v2.0.1 https://github.com/altcha-org/altcha-lib-rb/commit/dd4c178a283e766299123b762e1925aa71a9d47f
  • Rust Lib v0.2.0 https://github.com/altcha-org/altcha-lib-rs/commit/fd9bc042c08db4e2e11ceb39d9a459ee5a872310

Go, PHP, C++ libraries are unaffected.

Workarounds

Use deterministic mode with `hmacKeySignatureSecret` set consistently on creation and verification to route through the unaffected fast path, or upgrade to patched versions.

References

Patch commit: e2a6daf

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
altcha< 0.2.0
altcha_lib< 0.3.1
altcha< 2.0.1
org.altcha/altcha< 2.0.3
altcha< 2.1.0
altcha-lib< 2.3.2
0.2.0
0.3.1
2.0.1
2.0.3
2.1.0
2.3.0
2.3.2
2.8.0
3.0.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmaltcha-lib
Corregida 2.3.2 -3 d 2.8.0 no afectada
rubygemsaltcha
Corregida 2.0.1 0 d 3.0.0 no afectada
pypialtcha
Corregida 2.1.0 -3 d 2.3.0 no afectada
Versiones corregidas0.2.00.3.12.0.12.0.32.1.02.3.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/altcha-org/altcha-lib/security/advisories/GHSA-rx38-p542-v527

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.