ADVISORIES

GitHub Advisory Database

GHSA-gv7v-rgg6-548h

Laravel environment manipulation via query string

Details

Description

When the register_argc_argv php directive is set to on , and users call any URL with a special crafted query string, they are able to change the environment used by the framework when handling the request.

Resolution

The framework now ignores argv values for environment detection on non-cli SAPIs.

Affected packages

EcosystemPackageAffected versions
Packagistlaravel/framework
All versions before 6.20.45 (fixed in 6.20.45)
Packagistlaravel/framework
From 7.0.0 before 7.30.7 (fixed in 7.30.7)
Packagistlaravel/framework
From 8.0.0 before 8.83.28 (fixed in 8.83.28)
Packagistlaravel/framework
From 9.0.0 before 9.52.17 (fixed in 9.52.17)
Packagistlaravel/framework
From 10.0.0 before 10.48.23 (fixed in 10.48.23)
Packagistlaravel/framework
From 11.0.0 before 11.31.0 (fixed in 11.31.0)

References