{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/42099?format=json","vulnerability_id":"VCID-gdwk-ywbb-5ye8","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.","aliases":[{"alias":"GHSA-4mg9-vhxq-vm7j"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/75881?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/75880?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"},{"url":"http://public2.vulnerablecode.io/api/packages/41141?format=json","purl":"pkg:composer/laravel/framework@6.20.26","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-2cvu-atev-9ke5"},{"vulnerability":"VCID-34wy-r24r-sua4"},{"vulnerability":"VCID-4u2q-n52q-fudc"},{"vulnerability":"VCID-cckn-mmm4-9kcm"},{"vulnerability":"VCID-t15x-xkys-b3gr"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/laravel/framework@6.20.26"},{"url":"http://public2.vulnerablecode.io/api/packages/41143?format=json","purl":"pkg:composer/laravel/framework@8.40.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-2cvu-atev-9ke5"},{"vulnerability":"VCID-34wy-r24r-sua4"},{"vulnerability":"VCID-cckn-mmm4-9kcm"},{"vulnerability":"VCID-mbe6-x1yf-s3f9"},{"vulnerability":"VCID-t15x-xkys-b3gr"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/laravel/framework@8.40.0"}],"affected_packages":[],"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://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j"},{"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"}],"weaknesses":[{"cwe_id":89,"name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component."}],"exploits":[],"severity_range_score":"7.0 - 8.9","exploitability":null,"weighted_severity":null,"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-gdwk-ywbb-5ye8"}