# CVE-2026-142643: Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-03
- Aliases: CGA-gj3f-8g62-9q9v, CGA-grv7-qpmm-q8px
- Record: https://cvemate.com/vulnerability/CVE-2026-142643 · JSON: https://cvemate.com/vulnerability/CVE-2026-142643/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.44%, percentile 39.996%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard linuxserver-heimdal (Chainguard): All versions (No fix recorded)
- laravel framework: ≥ 13.0.0, \< 13.43.0 \| \< 12.73.0

## References

- <https://github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66>
- <https://github.com/laravel/framework/pull/62447>
- <https://github.com/laravel/framework/pull/62448>
- <https://github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99>
- <https://github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29>
- <https://github.com/laravel/framework/releases/tag/v12.73.0>
- <https://github.com/laravel/framework/releases/tag/v13.43.0>

---

Data as of 2026-12-05T09:19:46.163Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
