CVE-2026-63412 Enables Code Execution in Jane PHP OpenAPI Generator
A critical flaw, CVE-2026-63412, affects the Jane PHP library suite before version 7.12.0, including several OpenAPI and JSON Schema packages. The generator builds PHPDoc comments through raw string interpolation without escaping closing comment delimiters. An attacker supplying or modifying an OpenAPI specification can break out of the comment block and inject arbitrary PHP code into generated client classes. Injected methods such as the constructor run automatically when the application instantiates the class, enabling remote code execution. The vendor recommends upgrading to version 7.12.0 or later, regenerating all previously compiled code, and validating untrusted specifications before generation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in