CVE-2026-142643: Laravel · Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
Affects laravel/frameworkSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 13.43.0 when convenient.
Data as of 3 Dec 2026, 19:16 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- Patch
- Available – fixed in 13.43.0, 12.73.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade laravel/framework to 13.43.0; laravel/framework to 12.73.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistlaravel/framework | Affected
| Fixed in
|
| Packagistlaravel/framework | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
### 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()`.
References
- github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-142643 (opens in a new tab)
- github.com/laravel/framework/pull/62447 (opens in a new tab)
- github.com/laravel/framework/pull/62448 (opens in a new tab)
- github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99 (opens in a new tab)
- github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29 (opens in a new tab)
- github.com/laravel/framework (opens in a new tab)
- github.com/laravel/framework/releases/tag/v12.73.0 (opens in a new tab)
- github.com/laravel/framework/releases/tag/v13.43.0 (opens in a new tab)