You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#58785 [Runtime] Negate register_argc_argv when On (nicolas-grekas)
This PR was merged into the 7.2 branch.
Discussion
----------
[Runtime] Negate `register_argc_argv` when `On`
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
The `register_argc_argv` ini setting is a terrible idea from the past that can have dramatic consequences:
https://symfony.com/blog/cve-2024-50340-ability-to-change-environment-from-query
While Symfony itself will ignore argv injected via GET, apps are still at risk.
With this PR, I propose to harden all Symfony apps by always emptying argv/argc, so that their value cannot be hijacked.
There are no legitimate use case for this setting anyway.
Linking to php/php-src#12344 for cross-reference.
Commits
-------
917b064 [Runtime] Negate register_argc_argv when its On
0 commit comments