Saltar al contenido
DayZeroHub
Alta Sin redactarCVSS 7.1GHSA-x6w4-f264-3vvrCVE-2026-63184

CVE-2026-63184: Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion

Refitter

Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.

Resumen

CVE-2026-63184: vulnerabilidad de severidad alta (CVSS 7.1) en Refitter.

Qué ocurre

Descripción original de la fuente (en inglés): ### Summary Refitter (the `refitter` dotnet tool, built on NJsonSchema for `$ref` resolution) fetches remote `http(s)` URLs and reads local files (including absolute paths and `../` traversal outside the input directory), inlining the referenced schema into the generated Refit interface/contracts. Running `refitter <spec> --output Out.cs` on a spec whose `$ref` points at an attacker/internal URL or an arbitrary local file yields SSRF, remote file inclusion, and local file inclusion. Verified on Refitter 2.0.0. ### Details - `$ref: http://attacker-or-internal/evil.json#/...` -> build host fetches (SSRF) and inlines the remote schema (RFI); confirmed property `REMOTE_REFIT_PROP`. - `$ref: /abs/path.json#/...` or `../../secret.json#/...` -> out-of-tree local file read + inlined (LFI); confirmed property `REFIT_LFI_MARKER`. Both absolute and relative traversal work. No RCE: Refitter emits Refit interfaces with no baseUrl string literal (Refit sets the base address at runtime), enum values use C# verbatim-string doubling, and string defaults are escaped. The chain stops at SSRF + RFI + LFI. The `$ref` resolution is performed by Refitter's NJsonSchema dependency, which Refitter ships and invokes with these unsafe defaults. ### PoC `reproduce.sh` (+ `make_spec.py`, `listener.py`) attached: installs the .NET SDK + Refitter if needed, confirms LFI (out-of-tree read), SSRF (listener hit during generation), and RFI (remote schema inlined). Verified on 2.0.0. ### Impact Build-time SSRF (CWE-918) from the developer or CI host, disclosure of arbitrary local files (CWE-22), and inclusion of untrusted remote content (CWE-829), from running Refitter on an attacker-controlled or attacker-…

Por qué importa

Severidad alta, CVSS 7.1.

Productos y versiones afectados

Refitter < 2.1.1 (corregido en 2.1.1)

ProductoVersionesCorregido en
Refitter< 2.1.12.1.1

Acción recomendada por la fuente

Actualizar a una versión corregida: 2.1.1.

Corregido en: 2.1.1

Información tomada de la fuente o del proveedor. Verificala en el enlace original antes de actuar.

Fuentes y referencias

Debilidades (CWE): CWE-829, CWE-918

Historial de cambios relevantes

  1. Publicado

    Aviso preliminar publicado.