CVE-2026-133762: Without APP_RUNTIME_MODE, HTTP Workers Running Under the CLI SAPI Return Full Exception Dumps in Production
Since Symfony 7.4.0, FrameworkBundle chooses the error renderer from the runtime mode of the application, which comes from the APPRUNTIMEMODE env var. When this variable isn't set, the cli, phpdbg and embed SAPIs default to the CLI mode, and errors are rendered with CliErrorRenderer. This renderer dumps the whole exception, and it did so even when debug was off.
HTTP workers that run under the CLI SAPI and don't set APPRUNTIMEMODE then sent these dumps as error responses in production. They contain the messages, file paths and traces of the exceptions. Some exceptions reference the request, like the access denied errors of accesscontrol rules. Their dump then contains the server parameters, with all the environment variables of the application.
This affects, for example, the RoadRunner, Swoole and ReactPHP runners of php-runtime, and baldinof/roadrunner-bundle before 3.2.4. The worker mode of FrankenPHP sets the variable and isn't affected.
The CLI renderer is now used only in debug mode.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Production HTTP workers running under the CLI SAPI are exposed when APP_RUNTIME_MODE is unset. Examples include RoadRunner, Swoole, and ReactPHP runners using php-runtime, as well as baldinof/roadrunner-bundle versions before 3.2.4. FrankenPHP worker mode is not affected because it sets the variable.
What must happen for sensitive data to be returned to a client?
An exception must be raised by an HTTP request while the worker uses the CLI error renderer. The issue occurs even with debug disabled, because the CLI renderer can return exception messages, file paths, and stack traces in the HTTP error response.
What information could be exposed?
Responses can include the complete exception dump, including messages, file paths, and traces. Exceptions that reference the request, such as access-control denial errors, can also expose server parameters containing the application's environment variables.
What can be done if updating is not immediately possible?
Ensure APP_RUNTIME_MODE is set for HTTP worker processes so they do not fall back to CLI runtime mode. Review production error responses and logs for exception dumps, particularly from access-control failures, to determine whether environment variables may already have been disclosed.