Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-21263

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-21263
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:48 UTC · Revision 1

Source evidence

CVE-2021-21263

core-osv · Original source

Published 19 Jan 2021, 20:15 UTC

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.

osv:CVE-2021-21263
Complete source record
{
  "id": "0caa2326bf47732e382ea2a391d42910e88fbae0d815bead885c9156ace1c687",
  "url": "https://osv.dev/vulnerability/CVE-2021-21263",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-21263",
    "summary": "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.",
    "evidence": "osv:CVE-2021-21263",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-21263",
      "aliases": [
        "BIT-laravel-2021-21263",
        "CVE-2021-21263",
        "GHSA-3p32-j457-pg5x"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/laravel/framework",
              "type": "GIT",
              "events": [
                {
                  "introduced": "89c81d4dc37714d82521d05dc003b26b2a86defc"
                },
                {
                  "fixed": "29c831df184f1dff7ee1444352472b037241d340"
                },
                {
                  "introduced": "0b12ef19623c40e22eff91a4b48cb13b3b415b25"
                },
                {
                  "fixed": "405ca2bcf532dff1ef27f9f7ff7940221c575c84"
                },
                {
                  "introduced": "43bea00fd27c76c01fd009e46725a54885f4d2a5"
                },
                {
                  "fixed": "5c70991b96c5722afed541a996479b5112654c8b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.0.0"
                      },
                      {
                        "fixed": "6.20.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.30.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "fixed": "8.22.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v8.22.0",
            "v6.20.10",
            "v6.20.9",
            "v8.21.0",
            "v8.20.1",
            "v7.30.1",
            "v6.20.8",
            "v8.20.0",
            "v8.19.0",
            "v6.20.7",
            "v8.17.2",
            "v8.17.1",
            "v7.30.0",
            "v6.20.6",
            "v8.17.0",
            "v8.16.0",
            "v6.20.5",
            "v6.20.4",
            "v8.15.0",
            "v8.14.0",
            "v6.20.3",
            "v7.29.3",
            "v6.20.2",
            "v8.13.0",
            "v7.29.2",
            "v8.12.3",
            "v8.12.2",
            "v8.12.1",
            "v7.29.1",
            "v6.20.1",
            "v8.12.0",
            "v6.20.0",
            "v7.29.0",
            "v8.11.2",
            "v6.19.1",
            "v8.11.0",
            "v8.11.1",
            "v6.19.0",
            "v6.18.43",
            "v7.28.4",
            "v6.18.42",
            "v8.9.0",
            "v8.8.0",
            "v8.7.1",
            "v6.18.41",
            "v8.7.0",
            "v8.6.0",
            "v7.28.3",
            "v8.5.0",
            "v8.4.0",
            "v8.3.0",
            "v7.28.2",
            "v6.18.40",
            "v8.2.0",
            "v8.1.0",
            "v8.0.4",
            "v8.0.3",
            "v7.28.1",
            "v8.0.2",
            "v8.0.1",
            "v7.28.0",
            "v6.18.39",
            "v8.0.0",
            "v7.27.0",
            "v6.18.38",
            "v6.18.37",
            "v7.26.1",
            "v7.26.0",
            "v6.18.36",
            "v6.18.35",
            "v7.25.0",
            "v7.24.0",
            "v6.18.34",
            "v7.23.2",
            "v7.23.1",
            "v6.18.33",
            "v7.23.0",
            "v6.18.32",
            "v7.22.4",
            "v6.18.31",
            "v7.22.3",
            "v6.18.30",
            "v7.22.2",
            "v6.18.29",
            "v7.22.1",
            "v6.18.28",
            "v7.22.0",
            "v6.18.27",
            "v7.21.0",
            "v6.18.26",
            "v7.20.0",
            "v6.18.25",
            "v7.19.1",
            "v7.19.0",
            "v6.18.24",
            "v6.18.23",
            "v7.18.0",
            "v6.18.22",
            "v7.17.2",
            "v6.18.21",
            "v7.17.1",
            "v7.17.0",
            "v7.16.1",
            "v6.18.20",
            "v7.16.0",
            "v6.18.19",
            "v7.15.0",
            "v6.18.18",
            "v7.14.1",
            "v6.18.17",
            "v7.13.0",
            "v6.18.16",
            "v7.12.0",
            "v6.18.15",
            "v7.11.0",
            "v7.10.3",
            "v7.10.2",
            "v6.18.13",
            "v7.10.1",
            "v7.10.0",
            "v6.18.12",
            "v6.18.11",
            "v7.9.2",
            "v7.9.1",
            "v7.9.0",
            "v7.8.1",
            "v7.8.0",
            "v6.18.10",
            "v7.7.1",
            "v6.18.9",
            "v7.7.0",
            "v7.6.2",
            "v6.18.8",
            "v6.18.7",
            "v7.6.1",
            "v7.6.0",
            "v7.5.2",
            "v6.18.6",
            "v7.5.1",
            "v6.18.5",
            "v6.18.4",
            "v7.5.0",
            "v7.4.0",
            "v6.18.3",
            "v7.3.0",
            "v7.2.2",
            "v7.2.1",
            "v6.18.2",
            "v7.2.0",
            "v7.1.3",
            "v7.1.2",
            "v7.1.1",
            "v6.18.1",
            "v7.1.0",
            "v7.0.8",
            "v7.0.7",
            "v7.0.6",
            "v7.0.5",
            "v7.0.4",
            "v7.0.3",
            "v6.18.0",
            "v7.0.2",
            "v7.0.1",
            "v7.0.0",
            "v6.17.1",
            "v6.17.0",
            "v6.16.0",
            "v6.15.1",
            "v6.15.0",
            "v6.14.0",
            "v6.13.1",
            "v6.13.0",
            "v6.12.0",
            "v6.11.0",
            "v6.10.1",
            "v6.10.0",
            "v6.9.0",
            "v6.8.0",
            "v6.7.0",
            "v6.6.2",
            "v6.6.1",
            "v6.6.0",
            "v6.5.2",
            "v6.5.1",
            "v6.5.0",
            "v6.4.1",
            "v6.4.0",
            "v6.3.0",
            "v6.2.0",
            "v6.1.0",
            "v6.0.4",
            "v6.0.3",
            "v6.0.2",
            "v6.0.1",
            "v6.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21263.json"
          }
        }
      ],
      "modified": "2026-10-24T10:50:23.474910957Z",
      "provider": "osv",
      "references": [
        "https://blog.laravel.com/security-laravel-62011-7302-8221-released",
        "https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x",
        "https://packagist.org/packages/illuminate/database",
        "https://packagist.org/packages/laravel/framework",
        "https://github.com/laravel/framework/pull/35865"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "laravel:laravel",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.0.0"
                  },
                  {
                    "fixed": "6.20.11"
                  },
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "7.30.2"
                  },
                  {
                    "introduced": "8.0.0"
                  },
                  {
                    "fixed": "8.22.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-21263",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 442095,
  "published_at": "2021-01-19T20:15:13.3+00:00"
}