VDB
Sign up
HIGH

GHSA-wq8p-mqvg-2p5h

laravel framework SQL Injection via limit and offset functions

Quick fix

GHSA-wq8p-mqvg-2p5h — laravel/framework: upgrade to the fixed version with the command below.

composer require laravel/framework:^6.20.26

Details

### Impact Those using SQL Server with Laravel and allowing user input to be passed directly to the limit and offset functions are vulnerable to SQL injection. Other database drivers such as MySQL and Postgres are not affected by this vulnerability.

### Patches This problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.

### Workarounds You may workaround this vulnerability by ensuring that only integers are passed to the limit and offset functions, as well as the skip and take functions.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/laravel/framework
Introduced in: 6.0.0Fixed in: 6.20.26
Fixcomposer require laravel/framework:^6.20.26
Packagist/laravel/framework
Introduced in: 7.0.0Fixed in: 7.30.5
Fixcomposer require laravel/framework:^7.30.5
Packagist/laravel/framework
Introduced in: 8.0.0Fixed in: 8.40.0
Fixcomposer require laravel/framework:^8.40.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"]}'