{"vuln_id":"CVE-2026-63412","aliases":["GHSA-q8v2-3j4h-xg2p"],"description":"Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","published_at":"2026-11-18T22:17:22.710000Z","modified_at":"2026-11-19T16:30:05.186492Z","first_seen_at":"2026-11-21T19:15:19.494514Z","severity":"critical","severity_source":"nvd","cvss_score":9.3,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-94","CWE-95","CWE-116"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00507,"epss_percentile":0.44109,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-63412"},"matched_alias":null,"items":[{"id":11096,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-q8v2-3j4h-xg2p: Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)\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 query parameter name verbatim in a `@param array{ \"\n\"?: ... }` 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(){\n} /*` 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)\n\nAffected: Packagist:jane-php/open-api-3\n\nFixed in: 7.12.0\n\nReferences:\nhttps://github.com/janephp/janephp/security/advisories/GHSA-q8v2-3j4h-xg2p\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-63412\nhttps://github.com/janephp/janephp/pull/960\nhttps://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a\nhttps://github.com/janephp/janephp\nhttps://github.com/janephp/janephp/releases/tag/v7.12.0","url":"https://osv.dev/vulnerability/GHSA-q8v2-3j4h-xg2p","published_at":"2026-11-19T16:18:45Z","updated_at":"2026-11-19T16:30:05.186492Z","fetched_at":"2026-11-21T19:15:55.946427Z","severity":"critical","cvss_score":9.3,"epss":0.00507,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"jane-php/open-api-3","vuln_id":"CVE-2026-63412","vuln_ids":["CVE-2026-63412","GHSA-Q8V2-3J4H-XG2P"],"tags":["osv","packagist","fix-available"],"cluster_id":2244,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11096","html":"https://vulnwatch.ve1ve2.com/item/11096"}},{"id":2406,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-q8v2-3j4h-xg2p / CVE-2026-63412: Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)\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 query parameter name verbatim in a `@param array{ \"\n\"?: ... }` 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(){\n} /*` 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)\n\nAffected packages: composer:jane-php/open-api-3\nPatched: jane-php/open-api-3 7.12.0","url":"https://github.com/advisories/GHSA-q8v2-3j4h-xg2p","published_at":"2026-11-19T16:18:45Z","updated_at":"2026-11-19T16:18:46Z","fetched_at":"2026-11-21T19:15:18.416812Z","severity":"critical","cvss_score":9.3,"epss":0.00507,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"jane-php/open-api-3","vuln_id":"CVE-2026-63412","vuln_ids":["CVE-2026-63412","GHSA-Q8V2-3J4H-XG2P"],"tags":["ghsa","composer","CWE-94","CWE-95","CWE-116"],"cluster_id":2244,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2406","html":"https://vulnwatch.ve1ve2.com/item/2406"}},{"id":8246,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-63412: 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 generato…","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.\n\nReferences:\nhttps://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a\nhttps://github.com/janephp/janephp/pull/960\nhttps://github.com/janephp/janephp/releases/tag/v7.12.0\nhttps://github.com/janephp/janephp/security/advisories/GHSA-q8v2-3j4h-xg2p","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63412","published_at":"2026-11-18T22:17:22.710000Z","updated_at":"2026-11-19T16:21:39.617000Z","fetched_at":"2026-11-21T19:15:31.484032Z","severity":"critical","cvss_score":9.3,"epss":0.00507,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":null,"vuln_id":"CVE-2026-63412","vuln_ids":["CVE-2026-63412","GHSA-Q8V2-3J4H-XG2P"],"tags":["CWE-94","CWE-95","CWE-116"],"cluster_id":2245,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8246","html":"https://vulnwatch.ve1ve2.com/item/8246"}}]}