llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · flyto-core

GHSA-3J3M-RP8W-PXPV

flyto-core 2.33.0 — SSRF via `image.download`: the per-hop redirect protection was omitted from the module

Parche disponible
Descargar PNG JSON
CVSS 3.1
7.7
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición8 dDesde la divulgación, 11 nov 2026, 9:42 p. m.
Detección6 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 2.41.0
Monitoreo
Detectada +1
12 nov 26
18 nov 26
20 nov 26
12 nov 26
14 nov 26
16 nov 26
18 nov 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-3J3M-RP8W-PXPV divulgada · CVSS 7.7 (GitHub)
Remediación Parche 2.41.0 flyto-core · 0 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
Summary

The 2.26.7 per-hop redirect fix (`guarded_aiohttp_request`, GHSA-c9hr-64h3-gxpc) was applied to `http.get` / `http.request` but omitted from `image.download`, which validates only the initial URL and then issues a plain `session.get` that automatically follows redirects. A public URL that responds `302` to `http://[::ffff:127.0.0.1]:8080/` reaches an internal service on the latest release, 2.33.0.

The 2.26.8 "resolve once and connect" resolver cannot back-fill this gap because aiohttp's `TCPConnector._resolve_host` short-circuits IP literals, so the guarded resolver never sees the address.

Details
  • `core/modules/atomic/image/download.py:132` validates only the initial URL; `:157` issues a plain `session.get` that auto-follows redirects.
  • Control path: `core/modules/atomic/http/get.py:190` uses `guarded_aiohttp_request` and is correctly blocked.
  • `core/utils.py:903` carries the GHSA-c9hr-64h3-gxpc reference (the fix that was not applied to `image.download`).
  • Version matrix (evidence `ssrf-matrix-2.33.0.txt`, `ssrf-defaultport-version-matrix.txt`):

| Module | 2.26.5 | 2.26.7 | 2.26.8 | 2.33.0 (latest) |
|---|---|---|---|---|
| `http.get` / `http.request` (public 302 → internal) | ALLOWED | BLOCKED | BLOCKED | BLOCKED |
| `image.download` (public 302 → internal) | ALLOWED | ALLOWED | ALLOWED | ALLOWED |
| `image.download` (`[::ffff:127.0.0.1]` literal) | ALLOWED | ALLOWED | ALLOWED | ALLOWED |

Proof of concept
pip install flyto-core==2.33.0

# 1) public redirector: any public address that 302s to the internal literal
python3 - <<'PY' &
from http.server import BaseHTTPRequestHandler, HTTPServer
class H(BaseHTTPRequestHandler):
    def do_GET(self):
        self.send_response(302)
        self.send_header('Location','http://[::ffff:127.0.0.1]:8080/')
        self.end_headers()
HTTPServer(('0.0.0.0',8140), H).serve_forever()
PY

# 2) internal catcher on 127.0.0.1:8080 (separate process)

# 3) invoke the image.download module on http://<PUBLIC_IP>:8140/redir
#    (flyto-core workflow/runtime entry point; see findings/52655-flyto-ssrf/poc.sh)
#    -> HTTP 200 and a catcher hit on 127.0.0.1:8080

# control: the identical chain through http.get is BLOCKED
#   NetworkError: URL resolves to private IP: ::ffff:127.0.0.1

The same result holds with a two-hop redirect (`public -> public -> [::ffff:127.0.0.1]`) and with the default allowed ports (`80,443,8080,8443`), so no operator configuration is required.

Impact

Any workflow that uses `image.download` on an attacker-influenced URL can be made to issue server-side requests to internal services and cloud metadata endpoints. Because the module is a general-purpose downloader used in workflows, an authenticated workflow author (or an attacker who can influence a URL consumed by a workflow) obtains an SSRF primitive that survives the fixes shipped for the sibling `http.*` modules.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

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:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
flyto-core< 2.41.0
2.41.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypiflyto-core
Corregida 2.41.0 0 d 2.41.0 no afectada
Versiones corregidas2.41.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/flytohub/flyto-core/security/advisories/GHSA-3j3m-rp8w-pxpv

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