CVE Catalog

CVE-2026-142643

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.44%

40th percentile - higher than 40% of all known CVEs

Summary

In Laravel prior to versions 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, so 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.

Risk Assessment

An unauthenticated attacker can bypass "must reference an existing record" checks, potentially leading to unauthorized operations based on false validation.

Recommendation

Update Laravel to version 13.43.0 or 12.73.0 (or later). Additionally, apply explicit type casting or type validation rules for string fields.

Other vulnerabilities in Laravel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS