NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

GHSA-wq8p-mqvg-2p5h: laravel framework SQL Injection via limit and offset functions

high

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.

Published May 15, 2024

Affected packages

laravel/framework

Ecosystem
Composer (PHP)
Affected
>= 6.0.0, < 6.20.26
Fixed in
6.20.26
Check
composer show laravel/framework

laravel/framework

Ecosystem
Composer (PHP)
Affected
>= 7.0.0, < 7.30.5
Fixed in
7.30.5
Check
composer show laravel/framework

laravel/framework

Ecosystem
Composer (PHP)
Affected
>= 8.0.0, < 8.40.0
Fixed in
8.40.0
Check
composer show laravel/framework

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries