Advisory record · GHSA-4mg9-vhxq-vm7j

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

No CVSS score

Published by the GitHub Advisory Database at 29 Apr 2021, 21:52 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
laravel/frameworkPackagist>=8.0.0, <8.40.0 || <6.20.268.40.0, 6.20.26
illuminate/databasePackagist>=8.0.0, <8.40.0 || <6.20.268.40.0, 6.20.26
Identifiers
GHSA-4mg9-vhxq-vm7j
Weakness (CWE)
CWE-89
Published
29 Apr 2021
Updated
2 Dec 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

laravel/framework and illuminate/database are affected before 6.20.26 and from 8.0.0 before 8.40.0 when used with SQL Server. If user input is passed directly to the limit or offset functions, an attacker can inject SQL. Upgrade to 6.20.26 or 8.40.0, or ensure only integers are passed to limit, offset, skip and take.

Written 13 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

No source has published a CVSS score for this record yet.

  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 28 Apr 2021, 14:44 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.