← 漏洞与更新

中危漏洞公告PHPLaravel

Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch

受影响

软件包受影响版本修复版本
composer:laravel/framework>= 13.0.0, < 13.43.013.43.0
composer:laravel/framework< 12.73.012.73.0

Eloquent's $guarded protection can be bypassed with an alternate spelling of a guarded attribute name, such as a hyphen or whitespace variant of is_admin. The guard check compared the raw key, while set-mutator resolution normalized it with Str::studly() or Str::camel(). Applications are affected when a model uses a $guarded blacklist, defines a set-mutator (classic or Attribute-based) on a guarded attribute, and mass-assigns untrusted input such as $request->all(). A remote client could then w…

在 GitHub Advisory Database 阅读

2026/12/04 03:09,GitHub Advisory Database 发布了“Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:PHP、Laravel。CVE:CVE-2026-142634。