{"id":"CVE-2026-63412","aliases":["CVE-2026-63412","GHSA-q8v2-3j4h-xg2p"],"related":[],"kind":"vulnerability","state":"published","title":"Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generator emits an OpenAPI query parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A query parameter name containing a PHPDoc closing delimiter can terminate the comment early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated Client is instantiated. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, and can execute arbitrary PHP with the consuming application's privileges. This issue is fixed in version 7.12.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generator emits an OpenAPI query parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A query parameter name containing a PHPDoc closing delimiter can terminate the comment early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated Client is instantiated. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, and can execute arbitrary PHP with the consuming application's privileges. This issue is fixed in version 7.12.0.","source":"cvelist"},{"lang":"en","text":"### 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 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.\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/29497099/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497102/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497103/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497104/make_spec.py)","format":"markdown","source":"ghsa"}],"published":"2026-11-18T21:44:12.308Z","modified":"2026-11-19T16:30:05.186Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"}],"cwes":["CWE-94","CWE-95","CWE-116"],"affected":[{"ranges":[{"version":"< 7.12.0","status":"affected"}],"vendor":"janephp","product":"janephp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.12.0"}],"ecosystem":"Packagist","package":"jane-php/open-api-3","purl":"pkg:composer/jane-php/open-api-3","source":"ghsa"}],"references":[{"url":"https://github.com/janephp/janephp/security/advisories/GHSA-q8v2-3j4h-xg2p","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/janephp/janephp/pull/960","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/janephp/janephp/releases/tag/v7.12.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63412","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/janephp/janephp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-11-19T15:49:30.220Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63412","url":"https://www.cve.org/CVERecord?id=CVE-2026-63412","licence":"CVE Terms of Use","modified":"2026-11-19T15:57:03.099Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q8v2-3j4h-xg2p","url":"https://github.com/advisories/GHSA-q8v2-3j4h-xg2p","licence":"CC-BY-4.0","modified":"2026-11-19T16:30:05.186Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63412","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63412","licence":"Public domain","modified":"2026-11-19T16:21:39.617Z"}],"updatedAt":"2026-11-25T22:59:51.924Z","epss":{"score":0.00507,"percentile":0.44827,"date":"2026-12-01T12:00:22.000Z"}}