{"id":"CVE-2026-63411","aliases":["CVE-2026-63411","GHSA-xwcw-j52r-34x4"],"related":[],"kind":"vulnerability","state":"published","title":"Jane: Instantiation RCE via parameter description -> 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 parameter description verbatim in generated Client/Endpoint method docblocks. A parameter description 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 parameter description verbatim in generated Client/Endpoint method docblocks. A parameter description 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 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.\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[maintainer-report.txt](https://github.com/user-attachments/files/29497314/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497317/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497319/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497322/make_spec.py)","format":"markdown","source":"ghsa"}],"published":"2026-11-18T21:45:30.482Z","modified":"2026-11-23T22:20:43.687Z","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-xwcw-j52r-34x4","tags":["exploit","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-63411","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/janephp/janephp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-11-23T22:10:52.256Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63411","url":"https://www.cve.org/CVERecord?id=CVE-2026-63411","licence":"CVE Terms of Use","modified":"2026-11-23T22:11:16.299Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xwcw-j52r-34x4","url":"https://github.com/advisories/GHSA-xwcw-j52r-34x4","licence":"CC-BY-4.0","modified":"2026-11-19T16:30:05.189Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63411","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63411","licence":"Public domain","modified":"2026-11-23T22:20:43.687Z"}],"updatedAt":"2026-11-25T22:59:51.924Z","epss":{"score":0.00507,"percentile":0.44826,"date":"2026-12-01T12:00:22.000Z"}}