Security: SQL Injection in SQL Server "LIMIT" / "OFFSET"

Apr, 28 2021

Today we have released security patches via Laravel 6.20.26 and 8.40.0. These patches resolve a security vulnerability that allowed SQL injection when unfiltered user input was passed directly to the limit and offset methods of the Laravel query builder and the user was also using Microsoft SQL Server as their database.

Other database drivers such as MySQL and Postgres do not appear to be affected by this problem at this time.

All Laravel users are encouraged to update immediately, or, if you are unable to update to these versions, ensure that you are only passing integers to the limit and offset methods.

This security vulnerability has been published as a GitHub security advisory: https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j

By Taylor Otwell

Creator of Laravel.

Follow the RSS Feed.