Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

GHSA-4MG9-VHXQ-VM7J

SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database

Overview

Published
29 Apr 2021
Modified
18 Nov 2021
High GitHub advisory
2 Registry packages
0 OS packages
0 Linux distributions
Yes Fix available
CVSS score High, no score

Description

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.

Source: OX vulnerability database

Severity

HIGH

No CVSS vector in the source. Severity comes from the advisory.

Affected packages · 2

Packages affected by GHSA-4MG9-VHXQ-VM7J
EcosystemPackageVulnerableFixed in
Composer (PHP) illuminate/database >=8.0.0, <8.40.0<6.20.26 8.40.06.20.26
Composer (PHP) laravel/framework >=8.0.0, <8.40.0<6.20.26 8.40.06.20.26

Open a package to see all its vulnerabilities.

Operating systems

No Linux distribution reports this ID.

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.