CVE-2026-142643
Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/ MariaDB
- Severity
- 5.3MediumNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.44% in 30 daysPercentile39thEPSS, scored
- Listed fix
13.43.0for laravel/framework From GitHub Advisories and OSV1 more listed version, 4 other affected packages
Overview
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.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploit chance over time
Affected
Packages 5
| Package | Affected | Fixed |
|---|---|---|
laravel/frameworkPackagist | 13.0.0 up to 13.43.0, plus listed versions v13.0.0v13.1.0v13.1.1v13.10.0v13.11.0 Show 45 more versionsShow lessv13.11.1v13.11.2v13.12.0v13.13.0v13.14.0v13.15.0v13.16.0v13.16.1v13.17.0v13.18.0v13.18.1v13.19.0v13.2.0v13.20.0v13.21.0v13.21.1v13.22.0v13.23.0v13.24.0v13.25.0v13.26.0v13.26.1v13.27.0v13.28.0v13.29.0v13.3.0v13.30.0v13.30.1v13.31.0v13.32.0v13.33.0v13.34.0v13.35.0v13.36.0v13.37.0v13.38.0v13.39.0v13.4.0v13.40.0v13.41.0v13.42.0v13.5.0v13.6.0v13.7.0v13.8.0 | 13.43.0 |
| before 12.73.0, plus listed versions 10.50.25.0.305.2.41v10.0.0v10.0.1 Show 45 more versionsShow lessv10.0.2v10.0.3v10.1.0v10.1.1v10.1.2v10.1.3v10.1.4v10.1.5v10.10.0v10.10.1v10.11.0v10.12.0v10.13.0v10.13.1v10.13.2v10.13.3v10.13.5v10.14.0v10.14.1v10.15.0v10.16.0v10.16.1v10.17.0v10.17.1v10.18.0v10.19.0v10.2.0v10.20.0v10.21.0v10.21.1v10.22.0v10.23.0v10.23.1v10.24.0v10.25.0v10.25.1v10.25.2v10.26.0v10.26.1v10.26.2v10.27.0v10.28.0v10.29.0v10.3.0v10.3.1 | 12.73.0 | |
snipe-it-8Docker Hardened Images:Alpine:3.23 | 8.8.0-r0 and later, plus listed versions 8.8.1-r08.8.3-r18.8.3-r28.8.3-r38.8.3-r4 Show 5 more versionsShow less8.8.3-r58.8.3-r68.8.4-r08.8.4-r18.8.4-r2 | None listed |
snipe-it-8Docker Hardened Images:Alpine:3.24 | 8.8.0-r0 and later, plus listed versions 8.8.1-r08.8.3-r18.8.3-r28.8.3-r38.8.3-r4 Show 5 more versionsShow less8.8.3-r58.8.3-r68.8.4-r08.8.4-r18.8.4-r2 | None listed |
snipe-it-8-php-extDocker Hardened Images:Debian:13 | 8.8.4-0 and later | None listed |
snipe-it-8Docker Hardened Images:Debian:13 | 8.8.0-0 and later, plus listed versions 8.8.1-08.8.3-18.8.3-28.8.3-38.8.3-4 Show 5 more versionsShow less8.8.3-58.8.3-68.8.4-08.8.4-18.8.4-2 | None listed |
The JSON record also has 1,216 more versions.
Products 2
Sources
CVE List Score usedCVSS 3.15.3
Laravel: 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.
- Record
CVE-2026-142643- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-843, CWE-1287
- Updated
- 2026-12-03
EUVDEUVD-2026-141971CVSS 3.15.3
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.
- Record
EUVD-2026-141971- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-12-03
GitHub AdvisoriesGHSA-wwq3-m3j5-wv66CVSS 3.15.3
Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
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().
- Record
GHSA-wwq3-m3j5-wv66- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-843, CWE-1287
- Updated
- 2026-12-03
NVDCVSS 3.15.3
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.
- Record
CVE-2026-142643- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-843, CWE-1287
- Updated
- 2026-12-03
OSVCVSS 3.15.3
Laravel: 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.
- Record
CVE-2026-142643- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-1287, CWE-843
- Updated
- 2026-12-03
OSVDHI-sa7z-xpzd-awyt-v5yoCVSS 3.15.3
Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, The exists and unique validation rules passed…
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.
- Record
DHI-sa7z-xpzd-awyt-v5yo- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-12-03
OSVGHSA-wwq3-m3j5-wv66CVSS 3.15.3
Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
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().
- Record
GHSA-wwq3-m3j5-wv66- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-1287, CWE-843
- Updated
- 2026-12-03
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, other IDs, references | OSV | |
| Published date | EUVD, OSV | |
| Published date | EUVD | |
| Affected packages, references | GitHub Advisories | |
| Affected packages, key facts, references | CVE List, NVD, OSV | |
| Other IDs, references | OSV | |
| Other IDs, products, published date | EUVD, NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66
github.com/laravel/framework/pull/62447
github.com/laravel/framework/pull/62448
github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99
github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29
github.com/laravel/framework/releases/tag/v12.73.0
github.com/laravel/framework/releases/tag/v13.43.0
nvd.nist.gov/vuln/detail/CVE-2026-142643