Skip to main content

Jane PHP EUVDEUVD-2026-129311

| CVE-2026-63413 CRITICAL
Code Injection (CWE-94)
2026-11-18 GitHub_M GHSA-x9xr-53qx-9qcf
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious OpenAPI header parameter name
  2. Delivery
    Victim generates client via Jane generator
  3. Exploit
    `*/` closes PHPDoc, injects __construct
  4. Execution
    Instantiate generated Client class
  5. Impact
    Execute arbitrary PHP at app privilege

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

Exploitation requires that (1) an attacker can influence the content of an OpenAPI 3 document (specifically a header parameter name) that will be fed to Jane's open-api-3 generator, (2) a victim runs the Jane generator (<7.12.0) over that untrusted/attacker-influenced spec to produce PHP Client/Endpoint classes, and (3) the victim's application instantiates the generated Client, which triggers the injected __construct. The core limiting factor is this chain of trust: the flaw is reachable only through a build/SDK-generation workflow that consumes a hostile specification - it is NOT exploitable against a deployed, running service, and environments that generate clients solely from trusted internal OpenAPI specs are not exposed. The only complete fix per the vendor is upgrading to 7.12.0, which sanitizes */ (to *\/) in generated PHPDoc text (parameter names and descriptions).

Impact

All severity signals point high: the vendor CVSS 4.0 base score is 9.3 (AV:N/AC:L/AT:N/PR:N/UI:N, full VC:H/VI:H/VA:H) and the vuln.today Decision label is act_now, with CWE-94 code injection yielding arbitrary PHP execution at the consuming application's privilege. However, the published PR:N/UI:N vector overstates real-world reachability: per the GHSA advisory and description, exploitation is not against a running network service - it requires that a victim developer generate a PHP client with Jane (<7.12.0) from an attacker-influenced OpenAPI 3 document AND then instantiate the generated Client. That developer action is effectively required user interaction, so I assess UI as Required rather than None (see assessed vectors). No EPSS score was supplied and the CVE is not listed in CISA KEV, so there is no confirmed active exploitation or widespread-exploitation probability to weigh; a public PoC reference (reproduce.sh/gen.php/make_spec.py) is attached to the advisory but is not verified here as working weaponized exploit code. Net: this is a genuine priority for any pipeline that runs Jane's generator over third-party or untrusted OpenAPI specs (full RCE, trivial once the malicious spec is consumed), but it is not a mass-automatable, internet-facing flaw - organizations that only generate clients from trusted internal specifications face substantially lower practical risk than the raw 9.3 suggests.

Exploit ScenarioDerived

An attacker supplies a malicious OpenAPI 3 document whose header parameter name embeds a PHPDoc closing delimiter */ followed by an attacker-controlled __construct method. A developer generates a PHP SDK from that spec with Jane open-api-3 (<7.12.0) and instantiates the generated Client - which applications do on essentially every API call - causing the injected PHP to run with the application's privileges. A public PoC reference exists (reproduce.sh, gen.php, make_spec.py attached to the GHSA advisory, verified by the reporter on 7.11.2/PHP 8.1); it is not verified here as working exploit code.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Arbitrary PHP execution in Jane's open-api-3 code generator (jane-php/open-api-3, all versions before 7.12.0, verified on 7.11.2) allows an attacker who can influence an OpenAPI document's header parameter name to break out of a generated PHPDoc block and plant a live __construct method inside the generated Client class. Because the injected constructor runs the moment the consuming application instantiates the generated client, an application that generates an SDK from an attacker-influenced spec and then uses it executes attacker PHP with that application's privileges. The vendor CVSS 4.0 base score is 9.3 (AV:N/AC:L/AT:N/PR:N/UI:N, full C:H/I:H/A:H), the independent assessment scores 9.3-equivalent impact with UI:R because the victim must run the generator and instantiate the result, and the vuln.today decision label is act_now; the advisory ships a public reproduction script, though it is not verified here as general-purpose exploit code. The flaw sits behind a build-time chain of trust rather than in a deployed endpoint, so environments that only generate clients from trusted internal specs are not exposed.

RemediationAI

Upgrade to Jane 7.12.0 - the vendor states this is the only complete fix. It neutralizes the PHPDoc closing delimiter by replacing */ with *\/ in every generated docblock across the OpenApi3, OpenApi2 and JsonSchema emitters (PR https://github.com/janephp/janephp/pull/960, commit 0ea379deab5689475d62653b408de62ad3611c7a, release https://github.com/janephp/janephp/releases/tag/v7.12.0); after upgrading, regenerate all previously generated clients and models, since sanitization happens at generation time and already-committed generated code retains whatever was emitted. Add a regression fixture whose header parameter name and description contain */ to confirm the sanitization holds in your own generation pipeline. Until every generator in the build chain is on 7.12.0, the actionable control is to treat OpenAPI documents as trusted input: generate only from specs under your own version control, reject or hand-review any spec whose parameter names contain comment delimiters, and generate inside a build container that does not hold production credentials - the trade-off is that you lose the ability to consume partner- or user-supplied specs during that window, and review alone does not stop a determined contributor from slipping a payload in. Full details are in the upstream advisory at https://github.com/janephp/janephp/security/advisories/GHSA-x9xr-53qx-9qcf.

Affected VersionsENISA

janephp < 7.12.0

Affected Packages

composer jane-php/open-api-3 fix: 7.12.0
euvd janephp fix: 7.12.0

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, so ordinary string literals coming from a JSON Schema or OpenAPI document are AST-escaped and cannot break out of code context. PHPDoc text is a different story: docblock lines are concatenated as raw strings, and the open-api-3 generator embeds each header parameter name verbatim as a string key inside a @param array{ "<name>"?: ... } annotation in the generated Client/Endpoint method docblocks. A parameter name containing the PHPDoc closing delimiter */ terminates the comment early; because the name is emitted as a raw string key rather than an identifier-mangled token, the delimiter and any trailing PHP survive into class-body position. A payload such as */ public function __construct(){ <code> } /* therefore adds an attacker-controlled constructor to the generated Client class, giving code injection (CWE-94, described by the vendor as CWE-94/95/116) that executes on instantiation. The same raw-docblock path existed in the JsonSchema getter/setter/property doc generators and the OpenApi2 and OpenApi3 parameter and constructor-doc generators, which is why the 7.12.0 fix (PR #960, commit 0ea379de) applies str_replace('*/', '*\/', ...) across parameter names and descriptions in all of those emitters and adds a CHANGELOG security entry covering this advisory plus GHSA-xwcw-j52r-34x4 and GHSA-q8v2-3j4h-xg2p. The trigger for a given deployment depends on whether untrusted specifications ever reach the generator; the evidence confirms the generated-code mechanism, not exploitation of any running service.

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

Vendor (GitHub_M) PRIMARY 9.3 CRITICAL
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
vuln.today AI 8.8 HIGH

Malicious spec is network-deliverable (AV:N) and the breakout is deterministic (AC:L), but a developer must generate and instantiate the client, so UI:R; no privileges needed and injected PHP yields full RCE (C/I/A:H).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 23:19 EUVD
CVE Published
Nov 18, 2026 - 21:39 cve.org
CRITICAL 9.3

DescriptionCVE.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 header parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A header 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

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.

Executive ViewAI

Why It Matters

CVE-2026-63413 is a critical code-injection flaw in Jane's open-api-3 PHP SDK generator affecting all versions before 7.12.0, where a malicious OpenAPI document can cause attacker-controlled PHP to be embedded and later executed inside applications that use the generated client. Because exploitation requires a developer to generate an SDK from an untrusted spec and instantiate it, the risk concentrates in engineering teams that consume third-party or externally supplied API specifications, where a single compromised spec could lead to full application takeover. Leadership should care because successful exploitation yields complete loss of confidentiality, integrity, and availability within affected applications, with potential downstream exposure of customer data and systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include restricting SDK generation to vetted, trusted OpenAPI specifications only, manually reviewing externally sourced specs and generated Client classes for injected __construct methods or unexpected PHP, regenerating with version 7.12.0 or later once available, and isolating build pipelines that process untrusted specs.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
PHP SDK/model code-generation library, niche developer-tooling footprint
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy