原始 OSV JSON{
"id": "GHSA-4mg9-vhxq-vm7j",
"aliases": [],
"details": "### 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",
"summary": "SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.40.0"
}
]
}
],
"package": {
"name": "laravel/framework",
"ecosystem": "Packagist"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.20.26"
}
]
}
],
"package": {
"name": "laravel/framework",
"ecosystem": "Packagist"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.40.0"
}
]
}
],
"package": {
"name": "illuminate/database",
"ecosystem": "Packagist"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.20.26"
}
]
}
],
"package": {
"name": "illuminate/database",
"ecosystem": "Packagist"
}
}
],
"modified": "2021-11-18T19:46:31Z",
"severity": [],
"published": "2021-04-29T21:52:53Z",
"references": [
{
"url": "https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j",
"type": "WEB"
},
{
"url": "https://github.com/laravel/framework",
"type": "PACKAGE"
},
{
"url": "https://packagist.org/packages/illuminate/database",
"type": "WEB"
},
{
"url": "https://packagist.org/packages/laravel/framework",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-89"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2021-04-28T20:17:07Z"
}
}