CVE-2021-21263
Query Binding Exploitation in Laravel
Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.625% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.2 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:55:41.480Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:41.480Z | CVE Program |
| epss | verified | 2026-11-19T16:04:29.367Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:59.335Z | OSV |
| affected | verified | 2026-11-19T12:55:41.480Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:41.480Z | CVE Program |
Affected versions and configuration
laravel framework; default status: unknown: >= 6.0.0, < 6.20.11 [affected; scheme: unspecified]; >= 7.0.0, < 7.30.2 [affected; scheme: unspecified]; >= 8.0.0, < 8.22.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "laravel",
"product": "framework",
"versions": [
{
"status": "affected",
"version": ">= 6.0.0, < 6.20.11"
},
{
"status": "affected",
"version": ">= 7.0.0, < 7.30.2"
},
{
"status": "affected",
"version": ">= 8.0.0, < 8.22.1"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/laravel/framework/pull/35865",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://blog.laravel.com/security-laravel-62011-7302-8221-released",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://packagist.org/packages/laravel/framework",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://packagist.org/packages/illuminate/database",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:09:14.909Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-3p32-j457-pg5x",
"aliases": [
"BIT-laravel-2021-21263",
"CVE-2021-21263"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.22.1"
}
]
}
],
"package": {
"name": "laravel/framework",
"purl": "pkg:composer/laravel/framework",
"ecosystem": "Packagist"
},
"versions": [
"v8.0.0",
"v8.0.1",
"v8.0.2",
"v8.0.3",
"v8.0.4",
"v8.1.0",
"v8.10.0",
"v8.11.0",
"v8.11.1",
"v8.11.2",
"v8.12.0",
"v8.12.1",
"v8.12.2",
"v8.12.3",
"v8.13.0",
"v8.14.0",
"v8.15.0",
"v8.16.0",
"v8.16.1",
"v8.17.0",
"v8.17.1",
"v8.17.2",
"v8.18.0",
"v8.18.1",
"v8.19.0",
"v8.2.0",
"v8.20.0",
"v8.20.1",
"v8.21.0",
"v8.22.0",
"v8.3.0",
"v8.4.0",
"v8.5.0",
"v8.6.0",
"v8.7.0",
"v8.7.1",
"v8.8.0",
"v8.9.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-3p32-j457-pg5x/GHSA-3p32-j457-pg5x.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.20.11"
}
]
}
],
"package": {
"name": "laravel/framework",
"purl": "pkg:composer/laravel/framework",
"ecosystem": "Packagist"
},
"versions": [
"v6.0.0",
"v6.0.1",
"v6.0.2",
"v6.0.3",
"v6.0.4",
"v6.1.0",
"v6.10.0",
"v6.10.1",
"v6.11.0",
"v6.12.0",
"v6.13.0",
"v6.13.1",
"v6.14.0",
"v6.15.0",
"v6.15.1",
"v6.16.0",
"v6.17.0",
"v6.17.1",
"v6.18.0",
"v6.18.1",
"v6.18.10",
"v6.18.11",
"v6.18.12",
"v6.18.13",
"v6.18.14",
"v6.18.15",
"v6.18.16",
"v6.18.17",
"v6.18.18",
"v6.18.19",
"v6.18.2",
"v6.18.20",
"v6.18.21",
"v6.18.22",
"v6.18.23",
"v6.18.24",
"v6.18.25",
"v6.18.26",
"v6.18.27",
"v6.18.28",
"v6.18.29",
"v6.18.3",
"v6.18.30",
"v6.18.31",
"v6.18.32",
"v6.18.33",
"v6.18.34",
"v6.18.35",
"v6.18.36",
"v6.18.37",
"v6.18.38",
"v6.18.39",
"v6.18.4",
"v6.18.40",
"v6.18.41",
"v6.18.42",
"v6.18.43",
"v6.18.5",
"v6.18.6",
"v6.18.7",
"v6.18.8",
"v6.18.9",
"v6.19.0",
"v6.19.1",
"v6.2.0",
"v6.20.0",
"v6.20.1",
"v6.20.10",
"v6.20.2",
"v6.20.3",
"v6.20.4",
"v6.20.5",
"v6.20.6",
"v6.20.7",
"v6.20.8",
"v6.20.9",
"v6.3.0",
"v6.4.0",
"v6.4.1",
"v6.5.0",
"v6.5.1",
"v6.5.2",
"v6.6.0",
"v6.6.1",
"v6.6.2",
"v6.7.0",
"v6.8.0",
"v6.9.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-3p32-j457-pg5x/GHSA-3p32-j457-pg5x.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.30.2"
}
]
}
],
"package": {
"name": "laravel/framework",
"purl": "pkg:composer/laravel/framework",
"ecosystem": "Packagist"
},
"versions": [
"v7.0.0",
"v7.0.1",
"v7.0.2",
"v7.0.3",
"v7.0.4",
"v7.0.5",
"v7.0.6",
"v7.0.7",
"v7.0.8",
"v7.1.0",
"v7.1.1",
"v7.1.2",
"v7.1.3",
"v7.10.0",
"v7.10.1",
"v7.10.2",
"v7.10.3",
"v7.11.0",
"v7.12.0",
"v7.13.0",
"v7.14.0",
"v7.14.1",
"v7.15.0",
"v7.16.0",
"v7.16.1",
"v7.17.0",
"v7.17.1",
"v7.17.2",
"v7.18.0",
"v7.19.0",
"v7.19.1",
"v7.2.0",
"v7.2.1",
"v7.2.2",
"v7.20.0",
"v7.21.0",
"v7.22.0",
"v7.22.1",
"v7.22.2",
"v7.22.3",
"v7.22.4",
"v7.23.0",
"v7.23.1",
"v7.23.2",
"v7.24.0",
"v7.25.0",
"v7.26.0",
"v7.26.1",
"v7.27.0",
"v7.28.0",
"v7.28.1",
"v7.28.2",
"v7.28.3",
"v7.28.4",
"v7.29.0",
"v7.29.1",
"v7.29.2",
"v7.29.3",
"v7.3.0",
"v7.30.0",
"v7.30.1",
"v7.4.0",
"v7.5.0",
"v7.5.1",
"v7.5.2",
"v7.6.0",
"v7.6.1",
"v7.6.2",
"v7.7.0",
"v7.7.1",
"v7.8.0",
"v7.8.1",
"v7.9.0",
"v7.9.1",
"v7.9.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-3p32-j457-pg5x/GHSA-3p32-j457-pg5x.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21263",
"type": "ADVISORY"
},
{
"url": "https://github.com/laravel/framework/pull/35865",
"type": "WEB"
},
{
"url": "https://blog.laravel.com/security-laravel-62011-7302-8221-released",
"type": "WEB"
},
{
"url": "https://blog.laravel.com/security-laravel-62012-7303-released",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2021-21263.yaml",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-21263.yaml",
"type": "WEB"
},
{
"url": "https://packagist.org/packages/illuminate/database",
"type": "WEB"
},
{
"url": "https://packagist.org/packages/laravel/framework",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-74",
"CWE-89"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-01-19T20:15:00Z",
"github_reviewed_at": "2021-01-19T19:36:31Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Packagist / package | laravel/framework | Not a distribution channel | 8.22.1 | Official record |
| ecosystem-boundary | Packagist / package | laravel/framework | Not a distribution channel | 6.20.11 | Official record |
| ecosystem-boundary | Packagist / package | laravel/framework | Not a distribution channel | 7.30.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:51:59.335ZArchived source JSON
Source publication: 2021-01-19T19:36:51.000Z
Source modification: 2026-09-10T03:49:13.905ZDocument fingerprint
2e69cc7bd852056ad1bdf296d24d529b8cb40028529849b3c9d9f2db1d172422 - CVE ProgramConsulted: 2026-11-19T12:55:41.480ZArchived source JSON
Source publication: 2021-01-19T19:40:18.000Z
Source modification: 2024-08-03T18:09:14.909ZDocument fingerprint
ec863eddb2e8c788d06b0c7c0394529199459f01a830e70f16cd572b900979e5 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:29.367ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6edec3ff5408c9332bb5cad007615e6981ab6e76b387b737f9030d5936c5b5e2
Official status history
- UNKNOWN → PUBLISHED · · evidence