CVE-2026-35047: Php Laravel Unrestricted File Upload To Public Path

An uploaded file is moved into a public_path() (web-accessible) directory inside a handler that does not perform Laravel validation ($request->validate([...]) or Validator::make(...)). When the stored filename's extension is taken from the client (e.g. getClientOriginalExtension() / getClientOriginalName()), an authenticated attacker can upload an executable

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-35047-php-laravel-unrestricted-file-upload-to-public-path --engine opengrep

Description

An uploaded file is moved into a public_path() (web-accessible) directory inside a handler that does not perform Laravel validation ($request->validate([...]) or Validator::make(...)). When the stored filename's extension is taken from the client (e.g. getClientOriginalExtension() / getClientOriginalName()), an authenticated attacker can upload an executable