{"vuln_id":"GHSA-4mg9-vhxq-vm7j","aliases":[],"description":"SQL Server LIMIT / OFFSET SQL Injection","published_at":"2021-04-28T14:44:43Z","modified_at":"2024-12-02T05:40:15.245335Z","first_seen_at":"2026-11-21T19:15:07.367800Z","severity":"high","severity_source":"ghsa","cvss_score":null,"cvss_vector":null,"cwe":["CWE-89"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-4mg9-vhxq-vm7j"},"matched_alias":null,"items":[{"id":11300,"source":{"id":"laravel","name":"Laravel framework (Packagist laravel/framework vulnerabilities)"},"title":"laravel/framework (Packagist): GHSA-wq8p-mqvg-2p5h - laravel framework SQL Injection via limit and offset functions","summary":"laravel framework SQL Injection via limit and offset functions\n\n### Impact\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\nThis problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.\n\n### Workarounds\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.\n\nAffected: Packagist:laravel/framework\n\nFixed in: 6.20.26, 7.30.5, 8.40.0\n\nReferences:\nhttps://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j\nhttps://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2021-04-28.yaml\nhttps://github.com/laravel/framework","url":"https://osv.dev/vulnerability/GHSA-wq8p-mqvg-2p5h","published_at":"2024-05-15T22:20:42Z","updated_at":"2024-11-29T05:41:40.570199Z","fetched_at":"2026-11-21T19:23:17.999927Z","severity":"high","cvss_score":null,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"laravel","product":"laravel/framework","vuln_id":"GHSA-wq8p-mqvg-2p5h","vuln_ids":["GHSA-4MG9-VHXQ-VM7J","GHSA-WQ8P-MQVG-2P5H"],"tags":["package-watch","pkg:laravel/framework","fix-available"],"cluster_id":10882,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11300","html":"https://vulnwatch.ve1ve2.com/item/11300"}},{"id":11297,"source":{"id":"laravel","name":"Laravel framework (Packagist laravel/framework vulnerabilities)"},"title":"laravel/framework (Packagist): GHSA-4mg9-vhxq-vm7j - SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database","summary":"SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database\n\n### 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.\n\nAffected: Packagist:illuminate/database, Packagist:laravel/framework\n\nFixed in: 8.40.0, 6.20.26\n\nReferences:\nhttps://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j\nhttps://github.com/laravel/framework\nhttps://packagist.org/packages/illuminate/database\nhttps://packagist.org/packages/laravel/framework","url":"https://osv.dev/vulnerability/GHSA-4mg9-vhxq-vm7j","published_at":"2021-04-29T21:52:53Z","updated_at":"2024-12-02T05:40:15.245335Z","fetched_at":"2026-11-21T19:23:17.999905Z","severity":"high","cvss_score":null,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"laravel","product":"laravel/framework","vuln_id":"GHSA-4mg9-vhxq-vm7j","vuln_ids":["GHSA-4MG9-VHXQ-VM7J"],"tags":["package-watch","pkg:laravel/framework","fix-available"],"cluster_id":440,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11297","html":"https://vulnwatch.ve1ve2.com/item/11297"}},{"id":591,"source":{"id":"gh-laravel","name":"Laravel framework releases (GitHub laravel/framework)"},"title":"GHSA-4mg9-vhxq-vm7j: SQL Server LIMIT / OFFSET SQL Injection","summary":"SQL Server LIMIT / OFFSET SQL Injection\n\n### Impact\r\n\r\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.\r\n\r\n### Patches\r\n\r\nThis problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.\r\n\r\n### Workarounds\r\n\r\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.\r\n\n\nAffected packages: composer:laravel/framework, illuminate/database\nPatched: laravel/framework, illuminate/database 6.20.26, 7.30.5, 8.40.0","url":"https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j","published_at":"2021-04-28T14:44:43Z","updated_at":"2021-11-17T15:41:16Z","fetched_at":"2026-11-21T19:15:07.232371Z","severity":"high","cvss_score":null,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"laravel","product":"laravel/framework, illuminate/database","vuln_id":"GHSA-4mg9-vhxq-vm7j","vuln_ids":["GHSA-4MG9-VHXQ-VM7J"],"tags":["repo-advisory","composer","security","repo:laravel/framework"],"cluster_id":440,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/591","html":"https://vulnwatch.ve1ve2.com/item/591"}}]}