Security mailing lists by PureSourceCode

GHSA-wq8p-mqvg-2p5h

HIGH

laravel framework SQL Injection via limit and offset functions

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.

Published
15 May 2024
Last modified
29 Nov 2024
Weakness
CWE-89
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist laravel/framework >= 6.0.0, < 6.20.26 6.20.26
OSV Packagist laravel/framework >= 7.0.0, < 7.30.5 7.30.5
OSV Packagist laravel/framework >= 8.0.0, < 8.40.0 8.40.0

References

History

  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 15 May 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.