VulnWatch by ve1ve2
medium 5.9

GHSA-hmj2-jgmw-v4m4: SQL Injection in Laravel PostgreSQL Query Grammar

Source:
Laravel framework releases (GitHub laravel/framework)
Published:
Fetched:
Updated:
Affects:
laravel laravel/framework

https://github.com/laravel/framework/security/advisories/GHSA-hmj2-jgmw-v4m4 ↗

repo-advisorycomposersecurityrepo:laravel/framework

SQL Injection in Laravel PostgreSQL Query Grammar Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compiling non-raw Query Builder APIs. A user-influenced JSON path / identifier segment can break out of the single-quoted SQL string literal context used by PostgreSQL JSON operators. ### Impact This can lead to SQL structure injection and WHERE-condition manipulation when an application passes user-influenced JSON path input into affected Query Builder APIs. ### Patches [#60923](https://github.com/laravel/framework/pull/60923) [#61192](https://github.com/laravel/framework/pull/61192) Affected packages: composer:laravel/framework Patched: laravel/framework >=13.24.0, laravel/framework >=12.67.0

Linked vulnerabilities (1)

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N

SQL Injection in Laravel PostgreSQL Query Grammar

Aliases: GHSA-h2hg-mfj4-rg7q, GHSA-gvpq-g4gw-8p4x