{"id":"CVE-2026-63413","aliases":["GHSA-x9xr-53qx-9qcf"],"title":"Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","severity":"critical","cvss":9.3,"cwe":["CWE-94"],"vendor":"jane-php","product":"jane-php/open-api-3","ecosystem":"composer","affected":["jane-php/open-api-3 < 7.12.0"],"patched":["jane-php/open-api-3 7.12.0"],"published":"2026-11-19","updated":"2026-11-19","sourceUpdated":"2026-11-19T16:12:25Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-x9xr-53qx-9qcf","references":[{"url":"https://github.com/janephp/janephp/security/advisories/GHSA-x9xr-53qx-9qcf"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63413"},{"url":"https://github.com/janephp/janephp/pull/960"},{"url":"https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a"},{"url":"https://github.com/janephp/janephp/releases/tag/v7.12.0"},{"url":"https://github.com/advisories/GHSA-x9xr-53qx-9qcf"}],"tags":["ghsa","composer","cve.org"],"cvssVector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-11-19T15:49:27.259739Z"},"cvssSource":"cna","epss":0.00468,"epssPercentile":0.42173,"ingestedAt":"2026-11-18T22:21:17.802Z","slug":"CVE-2026-63413","body":"## Overview\n\n### Summary\njane-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 header parameter name verbatim in a `@param array{ \"<name>\"?: ... }` block. A `*/` in the header 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.\n\n### Impact\nGenerating 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.\n\n### PoC\n`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.\n\n### Suggested fix\nNeutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`.\n\n[maintainer-report.txt](https://github.com/user-attachments/files/29497253/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497254/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497255/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497256/make_spec.py)\n\n## Affected packages\n\n- `jane-php/open-api-3 < 7.12.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `jane-php/open-api-3 7.12.0`","depth":"midnight","depthScore":51,"depthScoreParts":{"impact":51.2,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}