VDB
Sign up
—0.0

GHSA-gv7v-rgg6-548h

Laravel environment manipulation via query string

Quick fix

GHSA-gv7v-rgg6-548h — laravel/framework: upgrade to the fixed version with the command below.

composer require laravel/framework:^6.20.45

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/laravel/framework
Introduced in: 0Fixed in: 6.20.45
Fixcomposer require laravel/framework:^6.20.45
Packagist/laravel/framework
Introduced in: 7.0.0Fixed in: 7.30.7
Fixcomposer require laravel/framework:^7.30.7
Packagist/laravel/framework
Introduced in: 8.0.0Fixed in: 8.83.28
Fixcomposer require laravel/framework:^8.83.28
Packagist/laravel/framework
Introduced in: 9.0.0Fixed in: 9.52.17
Fixcomposer require laravel/framework:^9.52.17
Packagist/laravel/framework
Introduced in: 10.0.0Fixed in: 10.48.23
Fixcomposer require laravel/framework:^10.48.23
Packagist/laravel/framework
Introduced in: 11.0.0Fixed in: 11.31.0
Fixcomposer require laravel/framework:^11.31.0

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/laravel/framework"]}'