llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · jane-php/open-api-3

GHSA-Q8V2-3J4H-XG2P

Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

Parche disponible
Descargar PNG JSON
CVSS
—
critical
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión7.12.0
Exposición14 hDesde la divulgación, 19 nov 2026, 11:18 a. m.
Detección28 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada +1
11:18 a. m.
12:56 a. m.
11:18 a. m.
02:43 p. m.
06:07 p. m.
09:31 p. m.
12:56 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-Q8V2-3J4H-XG2P divulgada
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
jane-php (open-api-3) builds PHP via nikic/php-parser (AST), so string literals are escaped -- but PHPDoc comment text is emitted RAW. The generated Client/Endpoint method docblocks embed the query parameter name verbatim in a `@param array{ "<name>"?: ... }` block. A `*/` in the query name closes the `/** ... */` docblock early and lands in class-body position; because the name is a raw string key (not identifier-mangled), the `*/` and following PHP survive. Injecting `*/ public function __construct(){ <code> } /*` adds an attacker-controlled __construct to the generated Client class, which runs when the client is instantiated -> RCE (CWE-94). Verified 7.11.2/PHP8.1.

### Impact
Generating a client from an attacker-influenced OpenAPI document and using the generated SDK (instantiating the client, which apps do on every call) runs attacker PHP. CWE-94/95/116.

### PoC
`reproduce.sh` (+ `make_spec.py`, `gen.php`): scaffolds a composer project with jane-php/open-api-3, generates, instantiates the generated Client, shows the marker.

### Suggested fix
Neutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`.

maintainer-report.txt https://github.com/user-attachments/files/29497099/maintainer-report.txt
reproduce.sh https://github.com/user-attachments/files/29497102/reproduce.sh
gen.php https://github.com/user-attachments/files/29497103/gen.php
make_spec.py https://github.com/user-attachments/files/29497104/make_spec.py

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

Versiones

Rangos afectados

Afectada Corregida
jane-php/open-api-3< 7.12.0
7.12.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistjane-php/open-api-3
Corregida 7.12.0 — —
Versiones corregidas7.12.0
Explotación

Arsenal público

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

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-63412
Otrahttps://github.com/janephp/janephp/security/advisories/GHSA-q8v2-3j4h-xg2p
Otrahttps://github.com/janephp/janephp/pull/960
Otrahttps://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a
Otrahttps://github.com/janephp/janephp
Otrahttps://github.com/janephp/janephp/releases/tag/v7.12.0

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