CRITICAL · CVSS 4.0 EPSS 0.5% · 44th percentile CWE-116CWE-94CWE-95

CVE-2026-63412: Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-q8v2-3j4h-xg2p

Summary

Jane-php/open-api-3 allows Remote Code Execution via raw PHPDoc comment breakout when processing untrusted OpenAPI query parameter names containing '*/'. Engineering teams using the package to generate SDKs from attacker-influenced OpenAPI documents must update immediately.

Who is affected

Deployments that generate a client SDK from an attacker-influenced OpenAPI document are vulnerable. When the generated SDK client is instantiated, attacker-controlled PHP code injected via the PHPDoc block executes, leading to complete system compromise across confidentiality, integrity, and availability.

Exploitability

The vulnerability can be exploited over the network with low complexity and no privileges or user interaction required. It holds a critical CVSS base score with high impact on confidentiality, integrity, and availability, though current EPSS is low and it is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Packagist jane-php/open-api-3 >= 0, < 7.12.0 7.12.0 composer require "jane-php/open-api-3:>=7.12.0"

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

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)High
Integrity (vulnerable system)High
Availability (vulnerable system)High
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the vulnerability in jane-php/open-api-3?

PHPDoc comment text is emitted raw, allowing a '*/' sequence in query parameter names to break out of the docblock and inject arbitrary class-body PHP code.

What is the fixed version for jane-php/open-api-3?

Version 7.12.0 contains the suggested fix neutralizing '*/' sequences in generated PHPDoc text.

Is there active exploitation recorded for this CVE?

No, CISA Known Exploited Vulnerabilities indicates no active exploitation at this time.

Original advisory description
### Summary jane-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. ### Impact Generating 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. ### PoC `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. ### Suggested fix Neutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`. [maintainer-report.txt](https://github.com/user-attachments/files/29497099/maintainer-report.txt) [reproduce.sh](https://github.com/user-attachments/files/29497102/reproduce.sh) [gen.php](https://github.com/user-attachments/files/29497103/gen.php) [make_spec.py](https://github.com/user-attachments/files/29497104/make_spec.py)

References

Source records: GHSA-q8v2-3j4h-xg2p (OSV.dev) · EPSS by FIRST, 2026-11-22.