llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · openssl_encrypt

GHSA-4G2C-WPGJ-49W8

Standalone key server accepts ANY Bearer token as valid authentication

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS
—
critical
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a 21 d de la divulgación
Exposición283 dDesde la divulgación, 10 feb 2026, 7:01 a. m.
Detección281 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 1.4.0
Monitoreo
Detectada +1
10 feb 26
3 mar 26
18 nov 26
21 nov 26
10 feb 26
22 abr 26
2 jul 26
11 sept 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-4G2C-WPGJ-49W8 divulgada
Remediación Parche 1.4.0 openssl_encrypt · 21 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Severity: CRITICAL

Summary

The standalone key server's `verify_api_token()` function in `server/key-server/app/api/v1/keys.py` at lines 48-87 only checks that a non-empty token string is present after the `Bearer ` prefix. It does not validate the token against a database, JWT signature, or any credential store.

Affected Code
def verify_api_token(authorization: Optional[str] = Header(None)) -> bool:
    # ...
    token = authorization[7:]  # Remove "Bearer " prefix

    # In production, validate token against database or JWT
    # For now, simple token check (replace with proper validation)
    if not token:
        raise HTTPException(...)

    logger.debug("API token validated successfully")
    return True  # ANY non-empty string passes
Impact

Any HTTP request with `Authorization: Bearer x` is fully authenticated. An attacker can:
- Upload arbitrary public keys
- Search and enumerate all keys
- Revoke arbitrary keys belonging to any user

Recommended Fix
  • Implement JWT token validation with proper signature verification, or
  • Validate tokens against a database of issued tokens
  • Remove the placeholder authentication entirely until a real implementation is ready

---

Resolution

Resolved in commit `1d519a1` on branch `feature/v1.4.x-development`.

Versiones

Rangos afectados

Afectada Corregida Última
openssl_encrypt< 1.4.0
1.4.0
1.4.9
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypiopenssl_encrypt
Corregida 1.4.0 21 d 1.4.9 no afectada
Versiones corregidas1.4.0
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-4g2c-wpgj-49w8

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