{"id":"GHSA-4mg9-vhxq-vm7j","aliases":["GHSA-4mg9-vhxq-vm7j"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database","summary":"### Impact\n\nThose 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.\n\n### Patches\n\nThis problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.\n\n### Workarounds\n\nYou 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nThose 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.\n\n### Patches\n\nThis problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.\n\n### Workarounds\n\nYou 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.","format":"markdown","source":"ghsa"}],"published":"2021-04-29T21:52:53.000Z","modified":"2024-12-02T05:40:15.245Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.40.0"}],"ecosystem":"Packagist","package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.20.26"}],"ecosystem":"Packagist","package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.40.0"}],"ecosystem":"Packagist","package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.20.26"}],"ecosystem":"Packagist","package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"ghsa"}],"references":[{"url":"https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/laravel/framework","tags":["package"],"sources":["ghsa"]},{"url":"https://packagist.org/packages/illuminate/database","tags":["web"],"sources":["ghsa"]},{"url":"https://packagist.org/packages/laravel/framework","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4mg9-vhxq-vm7j","url":"https://github.com/advisories/GHSA-4mg9-vhxq-vm7j","licence":"CC-BY-4.0","modified":"2024-12-02T05:40:15.245Z"}],"updatedAt":"2026-11-25T22:56:31.061Z"}