MEDIUMCVSS v3.1 5.3Vulnerability

CVE-2026-142643

### Impact 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. ### Patches `DatabasePresenceVerifier` now compares integers and booleans as strings. The fixes are merged on the 13.x branch (https://github.com/laravel/framework/pull/62447) and the 12.x branch (https://github.com/laravel/framework/pull/62448). ### Workarounds Add the `string` rule (or `integer`, as appropriate) before `exists` and `unique` rules, or cast the input in `prepareForValidation()`.

Properties

Severity
medium
Summary
Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
Nvd fetched at
2026-12-04T15:00:48.841578+00:00
Epss score
0.0044
Cvss severity
MEDIUM
Cvss score
5.3
Retrieved at
2026-12-04T15:02:58+00:00
Ghsa published
2026-12-03T18:54:21Z
Source url
https://github.com/advisories/GHSA-wwq3-m3j5-wv66
Ghsa updated
2026-12-03T18:54:25Z
Ghsa id
GHSA-wwq3-m3j5-wv66
Last source
FIRST EPSS
Score
5.3
Cvss version
3.1
Cve id
CVE-2026-142643
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
First seen by Signal
2026-12-03T02:46:42+00:00
Name
CVE-2026-142643
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Related Entities (4)

AFFECTS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-142643 (CVSS v3.1 5.3) — Ninja Signal Threat Intelligence | Ninja Signal