Advisory

GHSA-3p32-j457-pg5x

Also known as: BIT-laravel-2021-21263, CVE-2021-21263

Summary

Query Binding Exploitation

Details

Description

Laravel versions <6.20.12, <7.30.3 & <8.22.1 contain a query binding exploitation.

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.

This vulnerability was discovered by Tim Groenevelt ([email protected]).

References

  • https://github.com/laravel/framework/pull/35865

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-01-19 19:36 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

laravel/framework

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.22.1 (ecosystem)

Fixed versions

8.22.1

Fix

The export has no generic command for this ecosystem.

illuminate/database

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.30.3 (ecosystem)

Fixed versions

7.30.3

Fix

The export has no generic command for this ecosystem.

illuminate/database

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.22.1 (ecosystem)

Fixed versions

8.22.1

Fix

The export has no generic command for this ecosystem.

illuminate/database

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.20.12 (ecosystem)

Fixed versions

6.20.12

Fix

The export has no generic command for this ecosystem.

laravel/framework

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.20.11 (ecosystem)

Fixed versions

6.20.11

Fix

The export has no generic command for this ecosystem.

laravel/framework

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.30.2 (ecosystem)

Fixed versions

7.30.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences