CVE-2026-142643
MEDIUM 5.3CVSS 3.1Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
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.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-1287CWE-843
- Also known as
- GHSA-wwq3-m3j5-wv66
- Sources
- NVDJSONCVE ListJSONOSV GHSA-wwq3-m3j5-wv66JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | laravel | framework | = >= 13.0.0, < 13.43.0; = < 12.73.0 | |
| OSV | Packagist | laravel/framework | >= 13.0.0, < 13.43.0 | 13.43.0 |
| OSV | Packagist | laravel/framework | < 12.73.0 | 12.73.0 |
References
- https://github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/pull/62447 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/pull/62448 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/releases/tag/v12.73.0 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/releases/tag/v13.43.0 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66 · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142643 · ADVISORY
- https://github.com/laravel/framework · PACKAGE
History
- 3 Dec 2026 21:56 UTC · NVD: status Received → Awaiting Analysis
- 3 Dec 2026 19:56 UTC · OSV: first stored (published 3 Dec 2026)
- 3 Dec 2026 17:56 UTC · NVD: updated (other details)
- 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
- 3 Dec 2026 00:30 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 23:30 UTC · CVE List: first stored (published 2 Dec 2026)