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

GHSA-XWCW-J52R-34X4

Jane: Instantiation RCE via parameter description -> 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:12 a. m.
Detección34 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:12 a. m.
12:56 a. m.
11:12 a. m.
02:38 p. m.
06:04 p. m.
09:30 p. m.
12:56 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-XWCW-J52R-34X4 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 parameter description verbatim in a `@param array{ "<name>"?: ... }` block. A `*/` in the parameter description 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/29497314/maintainer-report.txt
reproduce.sh https://github.com/user-attachments/files/29497317/reproduce.sh
gen.php https://github.com/user-attachments/files/29497319/gen.php
make_spec.py https://github.com/user-attachments/files/29497322/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-63411
Otrahttps://github.com/janephp/janephp/security/advisories/GHSA-xwcw-j52r-34x4
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.