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.