{"id":"CVE-2026-63411","aliases":["GHSA-xwcw-j52r-34x4"],"url":"https://o3.security/vulnerability/CVE-2026-63411","summary":"Jane: Instantiation RCE via parameter description -> 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{ \"<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)","published":"2026-11-18T21:45:30.482Z","modified":"2026-11-19T21:01:16.554605338Z","cvss":null,"epss":{"score":0.00312,"percentile":0.24634,"asOf":"2026-11-19"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"jane-php/open-api-3","fixedVersion":"7.12.0"}],"fix":{"url":"https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a","label":"janephp/janephp@0ea379d"},"references":[{"type":"WEB","url":"https://github.com/janephp/janephp/releases/tag/v7.12.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63411.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a"},{"type":"FIX","url":"https://github.com/janephp/janephp/pull/960"},{"type":"PACKAGE","url":"https://github.com/janephp/janephp"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-19T21:01:16.554605338Z"}}