← 취약점·업데이트

보통취약점 권고PHPLaravel

Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition

영향

패키지영향받는 버전수정 버전
composer:laravel/framework< 12.73.012.73.0

When an authenticated user is first resolved while Eloquent is initializing an eager-loaded relation, Eloquent's relation constraints are temporarily disabled. A lazy key-constrained lookup made during that window, such as Sanctum's token owner lookup, runs without its key restriction. The guard can then return the lowest-ID user (often an administrator) instead of the token's owner. This affects applications that call the guard inside a relation definition used with eager loading, for example…

GitHub Advisory Database에서 읽기

2026. 12. 04. 오전 03:08, GitHub Advisory Database에서 "Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition"을(를) 게시했습니다 (유형: 취약점 권고). 심각도는 "보통"(medium)입니다. 관련 기술: PHP, Laravel. CVE: CVE-2026-142636.