All vulnerabilities

Servers and applications

GHSA-wwq3-m3j5-wv66

Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB

Severity
Medium 5.3
Published
18 Nov 2026
Last changed
18 Nov 2026
Added to UpHeron
18 Nov 2026
Fixed in
12.73.0, 13.43.0
Weakness
CWE-843CWE-1287
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Sources
Project advisories (GitHub)

Description

The exists and unique validation rules passed integer and boolean values from the request unchanged to the database query. On MySQL and MariaDB, comparing a string column with an integer casts the column to a number. As a result, JSON input such as 0, false or [0] could satisfy a rule like required|exists:invites,code on a non-numeric string column without a valid value. An unauthenticated attacker who can submit JSON could bypass "must reference an existing record" checks. PostgreSQL and SQLite are not affected. Form-encoded input is always a string and is not affected.

From laravel/framework's security advisory.

Workarounds

Add the string rule (or integer, as appropriate) before exists and unique rules, or cast the input in prepareForValidation().

Workarounds as given by laravel/framework's security advisory.

Affected software

SoftwareAffected versions
LaravelServers and applications · github:laravel/framework
  • Every version before 13.43.0
  • Every version before 12.73.0

About Laravel

open source web application framework, written in PHP

From Wikidata, CC0 1.0.
Developers who used it in the past year
8.9%Stack Overflow Developer Survey 2025, 2025
Monthly downloads (Packagist)
24,524,463Packagist, 15 Nov 2026
Total downloads (Packagist)
622,287,963Packagist, 15 Nov 2026
GitHub stars
35,000GitHub, 15 Nov 2026
Forks
12,030GitHub, 15 Nov 2026
Latest release
v13.42.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
Developer
Taylor OtwellWikidata
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
9 Jun 2011Wikidata
First published on GitHub
10 Jan 2013GitHub

Release lines

ReleaseLatestSecurity fixes
1313.42.0Until 17 Mar 2028
1212.72.0Until 24 Feb 2027
1111.57.1Ended 12 Mar 2026
1010.50.4Ended 4 Feb 2025
99.52.23Ended 6 Feb 2024
88.83.29Ended 24 Jan 2023

From endoflife.date.

References