{"url":"http://public2.vulnerablecode.io/api/packages/382461?format=json","purl":"pkg:composer/illuminate/database@8.40.0","type":"composer","namespace":"illuminate","name":"database","version":"8.40.0","qualifiers":{},"subpath":"","is_vulnerable":false,"next_non_vulnerable_version":null,"latest_non_vulnerable_version":null,"affected_by_vulnerabilities":[],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/361161?format=json","vulnerability_id":"VCID-w7yr-t5fa-67ch","summary":"SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database\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.","references":[{"reference_url":"https://github.com/laravel/framework","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/laravel/framework"},{"reference_url":"https://packagist.org/packages/illuminate/database","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/illuminate/database"},{"reference_url":"https://packagist.org/packages/laravel/framework","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/laravel/framework"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/382462?format=json","purl":"pkg:composer/illuminate/database@6.20.26","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@6.20.26"},{"url":"http://public2.vulnerablecode.io/api/packages/382461?format=json","purl":"pkg:composer/illuminate/database@8.40.0","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@8.40.0"}],"aliases":["GHSA-4mg9-vhxq-vm7j"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-w7yr-t5fa-67ch"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@8.40.0"}