{"id":"GHSA-xwcw-j52r-34x4","summary":"Jane: Instantiation RCE via parameter description -\u003e raw PHPDoc */ breakout (jane-php/open-api-3)","details":"### 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{ \"\u003cname\u003e\"?: ... }` 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(){ \u003ccode\u003e } /*` adds an attacker-controlled __construct to the generated Client class, which runs when the client is instantiated -\u003e 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. `*/`-\u003e`* /`) 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)","aliases":["CVE-2026-63411"],"modified":"2026-11-19T16:30:05.189287492Z","published":"2026-11-19T16:12:11Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-11-19T16:12:11Z","nvd_published_at":"2026-11-18T22:17:22Z","cwe_ids":["CWE-116","CWE-94","CWE-95"]},"references":[{"type":"WEB","url":"https://github.com/janephp/janephp/security/advisories/GHSA-xwcw-j52r-34x4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63411"},{"type":"WEB","url":"https://github.com/janephp/janephp/pull/960"},{"type":"WEB","url":"https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a"},{"type":"PACKAGE","url":"https://github.com/janephp/janephp"},{"type":"WEB","url":"https://github.com/janephp/janephp/releases/tag/v7.12.0"}],"affected":[{"package":{"name":"jane-php/open-api-3","ecosystem":"Packagist","purl":"pkg:composer/jane-php/open-api-3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.12.0"}]}],"versions":["v5.3.0","v5.3.1","v5.3.2","v5.3.3","v6.0.0","v6.0.1","v6.0.2","v6.0.3","v6.0.4","v6.0.5","v6.1.0","v6.1.1","v6.2.0","v6.2.1","v6.2.2","v6.2.3","v6.2.4","v6.2.5","v6.3.0","v6.3.1","v6.3.2","v6.3.3","v6.3.4","v6.3.5","v6.3.6","v6.3.7","v6.3.8","v6.3.9","v7.0.0","v7.1.0","v7.1.1","v7.1.2","v7.1.3","v7.1.4","v7.1.5","v7.1.6","v7.1.7","v7.10.0","v7.10.1","v7.10.2","v7.10.3","v7.10.4","v7.11.0","v7.11.1","v7.11.2","v7.2.0","v7.2.1","v7.2.2","v7.2.3","v7.2.4","v7.2.5","v7.3.0","v7.3.1","v7.4.0","v7.4.1","v7.4.2","v7.4.3","v7.4.4","v7.5.0","v7.5.1","v7.5.2","v7.5.3","v7.5.4","v7.5.5","v7.6.0","v7.6.1","v7.6.2","v7.7.0","v7.8.0","v7.8.1","v7.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-xwcw-j52r-34x4/GHSA-xwcw-j52r-34x4.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}