Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in jane-php/open-api-3 7.12.0.
Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, Jane's Reference.php::doResolve passes an attacker-controlled OpenAPI $ref target to file_get_contents without restricting its scheme or resolved local path. When a victim generates code from an attacker-influenced document, an HTTP or HTTPS reference can cause requests to attacker-chosen or internal services, while an absolute or parent-relative path can read local JSON or YAML files and inline the retrieved content into generated output. Exploitation occurs during generation or CI processing and can disclose local files and internal-service responses. This issue is fixed in version 7.12.0.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| janephp | <7.12.0 | ||
| packagist: jane-php/open-api-3 | <7.12.0 | 7.12.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in jane-php/open-api-3 (Packagist), strongest first
Embed
A live severity badge for an advisory, README or ticket