GHSA-4mg9-vhxq-vm7j

    Dashboard / Vulnerabilities / GHSA-4mg9-vhxq-vm7j

    GHSA-4mg9-vhxq-vm7j

    Published: 29 Apr 2021Last Modified: 2 Dec 2024

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

    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.

    Affected packages

    Package

    Name: laravel/framework

    Purl: pkg:composer/laravel/framework

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 8.0.0
    Fixed -8.40.0

    Affected versions

    v8.0.0
    v8.0.1
    v8.0.2
    v8.0.3
    v8.0.4

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-4mg9-vhxq-vm7j | CVE-DB