Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
Summary
| CVE | CVE-2026-142643 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-02 23:18:43 UTC |
| Updated | 2026-12-02 23:18:43 UTC |
| Description | Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, 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. This issue is fixed in versions 13.43.0 and 12.73.0. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Problem Types: CWE-843 | CWE-1287 | CWE-843 CWE-843: Access of Resource Using Incompatible Type | CWE-1287 CWE-1287: Improper Validation of Specified Type of Input
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| 3.1 | CNA | DECLARED | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/laravel/framework/releases/tag/v12.73.0 | [email protected] | github.com | |
| github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66 | [email protected] | github.com | |
| github.com/laravel/framework/pull/62448 | [email protected] | github.com | |
| github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace... | [email protected] | github.com | |
| github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d... | [email protected] | github.com | |
| github.com/laravel/framework/releases/tag/v13.43.0 | [email protected] | github.com | |
| github.com/laravel/framework/pull/62447 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.