Advisory

GHSA-wq8p-mqvg-2p5h

Also known as: None

Summary

laravel framework SQL Injection via limit and offset functions

Details

Impact
Those 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.

Patches
This problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.

Workarounds
You 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-05-15 22:20 UTC
Modified
2024-11-29 05:41 UTC

Affected packages and fixes

laravel/framework

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.20.26 (ecosystem)

Fixed versions

6.20.26

Fix

The export has no generic command for this ecosystem.

laravel/framework

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.30.5 (ecosystem)

Fixed versions

7.30.5

Fix

The export has no generic command for this ecosystem.

laravel/framework

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.40.0 (ecosystem)

Fixed versions

8.40.0

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