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_app2026/12/04 03:54,GitHub Advisory Database 发布了“Laravel: `in` / `Rule::in` validation rule bypass via loose comparison”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:PHP、Laravel。CVE:CVE-2026-142649。