Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| composer:laravel/framework | < 12.67.0 | 12.67.0 |
| composer:laravel/framework | >= 13.0.0, < 13.26.0 | 13.26.0 |
The in validation rule (and Rule::in, and not_in via the same code) compares the scalar input to the allowlist with a non-strict in_array(). PHP 8 then compares numeric strings numerically, so many values that are not literally in the list pass validation — including whitespace-padded, leading-zero, signed, and scientific-notation forms, and an embedded newline. The value returned by validated() / valid() is the raw, un-canonicalized input, so the attacker-controlled bytes flow through to the a…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/04 03:54、GitHub Advisory Databaseが「Laravel: `in` / `Rule::in` validation rule bypass via loose comparison」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: PHP、Laravel。CVE: CVE-2026-142649。