Description
The parse_str function in (1) PHP, (2) Hardened-PHP, and (3) Suhosin, when called without a second parameter, might allow remote attackers to overwrite arbitrary variables by specifying variable names and values in the string to be parsed. NOTE: it is not clear whether this is a design limitation of the function or a bug in PHP, although it is likely to be regarded as a bug in Hardened-PHP and Suhosin.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | php-8.4 | 8.4.12-r1 | — |
| Wolfi rolling | php-8.5 | 8.5.2-r0 | — |
References
- 39834 vdb-entry
- 2800 third-party-advisory
- 20070612 Re: PHP parse_str() arbitrary variable overwrite mailing-list
- php-parsestr-code-execution(34836) vdb-entry
- 20070613 Re: PHP parse_str() arbitrary variable overwrite mailing-list
- http://www.acid-root.new.fr/advisories/14070612.txt
- 20070612 PHP parse_str() arbitrary variable overwrite mailing-list