Laravel Framework Environment Manipulation via Query String When register_argc_argv Is Enabled
When PHP's `register_argc_argv` directive is enabled for HTTP requests, attackers can pass `?--env=...` in the URL query string to override the environment detected by Laravel.
Product
Affected Versions
Upstream Patched Versions
laravel/framework
< 6.20.45, 7.x - 10.48.22, 11.0.0 - 11.30.0
11.31.010.48.239.52.17
Trigger Conditions & Triage Notes
Requires `register_argc_argv = On` in the web SAPI php.ini (enabled in certain container base images) and `laravel/framework` prior to 11.31.0 / 10.48.23.
Mitigation & Workarounds
Upgrade `laravel/framework` to 11.31.0+ / 10.48.23+ and explicitly set `register_argc_argv = Off` in your php-fpm `php.ini`.
Linux Distribution Backport Notice: If you install packages (such as OpenSSL, Nginx, or PHP) via Ubuntu/Debian apt or RHEL/AlmaLinux dnf, security patches are typically backported into older upstream version numbers. Verify your OS vendor security tracker before compiling from source.