Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious OpenAPI spec with hostile query param name
-
DeliveryVictim generates Jane open-api-3 client from spec
-
ExploitPHPDoc `*/` breakout injects __construct into Client class
-
ExecutionApplication instantiates generated Client
-
ImpactArbitrary PHP executes with app privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Three concrete prerequisites must all hold: (1) the attacker can influence the OpenAPI/JSON Schema document that the target consumes (e.g. an externally sourced, third-party, or tampered spec); (2) the victim runs the Jane open-api-3 generator at version 7.11.2 or earlier against that document; and (3) the generated Client class is instantiated by the consuming application, which occurs routinely on API calls. The specific trigger is an OpenAPI query parameter name containing a PHPDoc |
| Impact | This is a genuine high-priority issue for a specific audience but not a mass-remote-exploitation threat. The published CVSS 4.0 vector (9.3, AV:N/AC:L/AT:N/PR:N/UI:N) frames it as frictionless remote RCE, but the described mechanism contradicts UI:N: exploitation requires a developer to actively run the Jane open-api-3 generator against an attacker-influenced OpenAPI document and then use the generated SDK, so meaningful victim interaction and a spec-trust prerequisite exist that the vendor vector omits - verify intended interaction metric with the maintainer. No EPSS score and no CISA KEV entry were provided in the input, so there is no quantitative exploitation-probability or active-exploitation signal; the only exploitation evidence is a PoC reference in the GHSA advisory (verified against 7.11.2/PHP8.1), which is distinct from in-the-wild use. The vuln.today Decision label is act_now, and that urgency is appropriate for anyone generating PHP clients from untrusted or third-party OpenAPI specs, because successful exploitation yields arbitrary PHP execution in the consuming application's context. For teams that only ever generate from fully trusted, internally controlled specs, real-world risk is substantially lower. Net: a real, fix-now issue scoped by the trust boundary of the input specification rather than a broadly wormable network flaw. |
| Exploit ScenarioDerived | An attacker who can influence an OpenAPI document (a public, third-party, or compromised API spec) embeds a query parameter name containing a PHPDoc closing delimiter followed by |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Generated-SDK code injection in Jane PHP's open-api-3 generator (7.11.2 and earlier) lets an attacker who can influence the OpenAPI document being consumed place arbitrary PHP into the generated client, which then executes with the consuming application's privileges whenever that client is instantiated. The trigger is a query parameter name containing a PHPDoc */ sequence that closes the generated docblock early and lands in class-body position, allowing an injected __construct method to run on every client instantiation - reached by unauthenticated remote attackers per the CVSS 4.0 vector, but only after the victim regenerates and uses a client built from the tainted spec. There is no CISA KEV entry, but a public PoC reference (reproduce.sh along with gen.php and make_spec.py) ships with the GitHub advisory and the project's priority assessment is act_now; realistic exposure is limited to workflows that generate SDKs from untrusted, third-party, or tampered specifications rather than fully internal, trusted specs.
RemediationAI
Vendor-released patch: 7.12.0. Upgrade the janephp packages (jane-php/open-api-3, open-api-2 and the json-schema component) to 7.12.0 or later via Composer and regenerate every previously generated SDK, since existing generated files retain whatever docblocks were previously emitted; the release is published at https://github.com/janephp/janephp/releases/tag/v7.12.0, the fix lands through https://github.com/janephp/janephp/pull/960 (commit 0ea379deab5689475d62653b408de62ad3611c7a), and the advisory is https://github.com/janephp/janephp/security/advisories/GHSA-q8v2-3j4h-xg2p. Where upgrading is not immediately possible, the actionable compensating control is to constrain generation to specifications you fully trust and to treat externally sourced or tampered OpenAPI/JSON Schema documents as untrusted input - the trade-off being that this blocks legitimate third-party spec consumption and still does not protect a spec that is compromised upstream. As a secondary check, inspect generated Client and Endpoint classes for a stray */ inside docblocks or for an unexpected __construct method before instantiating them; this is a detection measure with manual review overhead and no guarantee of catching every injection site. Pinning Composer constraints to the patched release and rebuilding generated code in CI prevents reintroduction of stale, unpatched output.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Jane builds PHP source through nikic/php-parser, emitting an AST so ordinary string literals are escaped - but PHPDoc comment text is written out raw. Generated Client/Endpoint method docblocks embed query parameter names verbatim inside an array-shape annotation of the form @param array{ "<name>"?: ... }, and because the name is used as a raw string key rather than an identifier-mangled token, a */ inside it terminates the enclosing /** ... */ block. Everything after that delimiter is parsed as class-body PHP, so a parameter name such as */ public function __construct(){ ... } /* injects an attacker-controlled constructor into the generated Client class; instantiating the client - which applications do on every API call - runs the payload (CWE-94, with the advisory also classifying it as CWE-95 and CWE-116). The upstream fix in PR #960 applies str_replace('*/', '*\/', ...) across a broader set of sinks than the open-api-3 endpoint path alone: GetterSetterGenerator and PropertyGenerator in the JsonSchema component (property descriptions), the OpenApi2 and OpenApi3 GetConstructorTrait, and the OpenApi2/OpenApi3 BodyParameterGenerator and NonBodyParameterGenerator classes (parameter names, descriptions and @var option lines). That spread shows the defect is a systemic raw-PHPDoc emission problem across model and endpoint generation in the janephp package (CPE cpe:2.3:a:janephp:janephp), not a single isolated sprintf call. The precise runtime trigger for any individual sink is the generate-then-instantiate flow documented in the advisory; behavior under other deployment setups is not described in the available sources.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker needs no privileges, but the victim must generate and instantiate a client from the malicious spec, so UI:R; injected code runs in the app's own context (S:U) with full impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
This is CWE-94, Improper Control of Generation of Code.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
A critical vulnerability in Jane PHP's OpenAPI generator (CVE-2026-63412) allows attackers to inject malicious code into generated client SDKs by tampering with OpenAPI specifications. Any organization that generates SDKs from untrusted or third-party specs risks remote code execution when those clients are used, potentially compromising application integrity and data. Leadership should prioritize remediation because this affects development workflows and could lead to supply-chain-style breaches.
No vendor-released patch identified at time of analysis. Interim mitigations: strictly validate and sanitize OpenAPI documents before code generation, especially query parameter names, to reject sequences like '*/'; avoid generating clients from untrusted or third-party specs; use static analysis on generated code to detect injected PHP; isolate SDK generation in a sandboxed environment.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-129313
GHSA-q8v2-3j4h-xg2p
NVD
CVE.org
EPSS
Exploit-DB