← 脆弱性・アップデート

警告脆弱性アドバイザリPHPLaravelMySQL / MariaDBPostgreSQL

Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB

影響

パッケージ影響する版修正版
composer:laravel/framework>= 13.0.0, < 13.43.013.43.0
composer:laravel/framework< 12.73.012.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 SQLit…

GitHub Advisory Databaseで読む

2026/12/04 03:54、GitHub Advisory Databaseが「Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: PHP、Laravel、MySQL / MariaDB、PostgreSQL。CVE: CVE-2026-142643。