Laravel 漏洞与安全更新

506 条

12月4日周五

  • 高危09:07漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Numeric validation can exhaust resources via extreme exponent input

    受影响: composer:laravel/framework < 12.74.0 → 12.74.0, composer:laravel/framework >= 13.0.0, < 13.44.1 → 13.44.1 The multiple_of validation rule, and the gt, gte, lt and lte rules when they compare against another numeric field, expand numeric input using arbitrary-precision arithmetic without bounding its exponent. A request containing a very small or very large exponent value, such as one in scientific notation, can cause excessive memory and CPU use and may exhaust PHP's memory limit. Applications are affected when these rules are applied to an unbounded numeric field, with no preceding bounding rule s…

  • 低危08:03漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Cross-Origin Auth Token Leakage Through Broadcasting JSONP Callback

    受影响: composer:laravel/framework < 12.53.0 → 12.53.0 The Pusher and Reverb broadcasters answered the /broadcasting/auth endpoint with a JSONP response when a callback parameter was present. The endpoint also accepts GET requests without CSRF protection. A malicious page could therefore load the endpoint as a script and read the channel auth token of a logged-in user. With that token, an attacker could subscribe to the user's private and presence channels and receive their events. With the default SameSite=Lax session cookie, the attacker's page h…

  • 中危08:00漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 When Rule::exists() or Rule::unique() is scoped with the fluent where() method, the condition is serialized into the string rule format and parsed again. A scalar value of NULL, NOT_NULL, or one starting with ! could be evaluated as an IS NULL, IS NOT NULL, or not-equal predicate instead of a literal comparison. If an attacker can influence a scope value, such as a tenant key, and the application relies on the rule to verify ownership of a referenced record, the validation can accept records fr…

  • 中危06:08漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 The decimal validation rule counts decimal places with a regular expression that backtracks quadratically on certain input. A very long run of digits followed by an exponent (for example, a value ending in e5) passes the rule's is_numeric() check and then forces excessive regex backtracking before the match fails. Any application that validates a request field with the decimal rule is affected, with no non-default configuration. A single large request can consume several seconds of worker CPU,…

  • 中危03:54漏洞公告LaravelPHPGitHub Advisory Database

    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…

  • Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 The exists and unique validation rules passed integer and boolean values from the request unchanged to the database query. On MySQL and MariaDB, comparing a string column with an integer casts the column to a number. As a result, JSON input such as 0, false or [0] could satisfy a rule like required|exists:invites,code on a non-numeric string column without a valid value. An unauthenticated attacker who can submit JSON could bypass "must reference an existing record" checks. PostgreSQL and SQLit…

  • 中危03:53漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Nested sometimes validation rules skipped when value is __missing__

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.72.0 → 12.72.0 When an attribute is nested or uses a wildcard (for example profile.age or items..quantity) and is validated with the sometimes rule, submitting the literal string __missing__ as its value causes the attribute to be treated as absent. All of its rules are skipped, the request passes validation, and the unvalidated value is returned by validated(). Applications may then store or process input that did not satisfy the declared rules. Top-level attributes and nested attributes without sometimes ar…

  • 中危03:53漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Unbounded $ref chain resolution in Illuminate\JsonSchema\Deserializer allows denial of service

    受影响: composer:laravel/framework < 12.73.0 → 12.73.0, composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0 Illuminate\JsonSchema\Deserializer resolved chained local $ref pointers recursively without limiting the depth of the chain. Applications that pass attacker-influenced JSON Schema data to JsonSchema::fromArray() or Deserializer::deserialize() could be sent a crafted schema containing a long linear chain of $ref references. Resolving it consumes memory and CPU rapidly and can exhaust the PHP memory limit, terminating the worker process. Repeated requests can sustain the outage. Applications that…

  • 中危03:52漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: XSS via unescaped Stringable values in Blade component attribute bag

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 Blade component attribute bags did not HTML-escape non-Htmlable object values, such as Illuminate\Support\Stringable, passed to ComponentAttributeBag::merge() or prepends(). Applications that place user-controlled Stringable values (for example, the result of request()->string()) into component attributes could allow an attacker to break out of the attribute and inject arbitrary attributes, such as event handlers. This results in cross-site scripting that runs in the origin of the application.…

  • 中危03:50漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: File validation bypass via empty input field colliding with an upload in Request::all()

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 In Laravel 13.x, Request::all() let a text input with the same name as an uploaded file take precedence over the file. If an attacker submitted an empty value alongside the file, request validation (including FormRequest validation) saw the empty value instead of the upload. Rules such as nullable, image, mimes and max were then skipped. Applications that validate an optional upload this way and then read it with $request->file() or $request->hasFile() could therefore store files that bypassed…

  • 中危03:45漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Unescaped bound attributes on Blade dynamic components that resolve to class-based components

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 Blade's did not HTML-escape bound attributes (:attr="$value") when the target resolved to a class-based component. If user-controlled data was bound to an attribute that is not a constructor parameter and the component outputs {{ $attributes }}, the value could break out of the HTML attribute and lead to cross-site scripting (XSS). The same component rendered with its normal tag escaped the value correctly. Anonymous component targets were not affected. Patches The fix is merged on the 13.x and…

  • 中危03:42漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Storage Signed URL Mode Confusion

    受影响: composer:laravel/framework >= 13.0.0, < 13.26.0 → 13.26.0, composer:laravel/framework < 12.67.0 → 12.67.0 A temporary signed read URL for a private local-storage object can be replayed as a PUT upload to the same URL path. The route signature authenticates only the URL and query string, while the read/write mode is determined later from request input. Impact This vulnerability allows overwrite of files using a read-only temporary signed URL. Patches Patched in [#61145](https://github.com/laravel/framework/pull/61145)

  • 中危03:20漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Denial of service in email validation via oversized Unicode domains

    受影响: composer:laravel/framework < 12.72.0 → 12.72.0, composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0 Applications using the default Laravel email validation rule on untrusted input can be exposed to excessive CPU and memory consumption when validating oversized email addresses with specially crafted non-ASCII domains. The reported attack triggers expensive Unicode normalization during native IDN conversion when the PHP intl extension is enabled. An unauthenticated attacker who can submit values to an endpoint using this rule may occupy PHP workers and degrade application availability. Exposure…

  • 中危03:19漏洞公告LaravelPostgreSQLPHPGitHub Advisory Database

    Laravel: SQL Injection in Laravel PostgreSQL Query Grammar

    受影响: composer:laravel/framework >= 13.0.0, < 13.24.0 → 13.24.0, composer:laravel/framework < 12.67.0 → 12.67.0 Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compiling non-raw Query Builder APIs. A user-influenced JSON path / identifier segment can break out of the single-quoted SQL string literal context used by PostgreSQL JSON operators. Impact This can lead to SQL structure injection and WHERE-condition manipulation when an application passes user-influenced JSON path input into affected Query Builder APIs. Patches [#60923](https://github.com/la…

  • 中危03:17漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: IP Spoofing via Host Header in TrustProxies Middleware Forge/Vapor Auto-Detection

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 On applications with no trusted proxies configured, Laravel could treat a request as coming through a trusted Forge or Vapor proxy based on a header the visitor controls. An attacker could use this to fake their IP address and make an insecure request look like HTTPS. This can let an attacker get around IP-based rate limits, such as login throttling, and IP allowlists. Only applications that haven't configured trusted proxies, and whose web server accepts any hostname, are affected. Patch - Fix…

  • 低危03:16漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Markdown secured encoding bypassed when Blade views are cached

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 Applications that enable Markdown::withSecuredEncoding() to escape user-controlled data in Markdown mail and mail notifications may not get that protection when views have been precompiled with php artisan view:cache or php artisan optimize. The cached view, compiled with the default echo format, is reused when mail views are rendered, so the secured encoder never runs. An attacker who controls data included in an email, such as a user name, could inject Markdown links or remote images into the…

  • 中危03:09漏洞公告LaravelPHPGitHub Advisory Database

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

    受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.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…

  • 中危03:08漏洞公告LaravelPHPGitHub Advisory Database

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

    受影响: composer:laravel/framework < 12.73.0 → 12.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…

12月3日周四

12月2日周三

12月1日周二

  • From MySQL 8.0 to MariaDB 11.8 LTS: The Bagisto Experience

    The Bagisto team are back! After sharing their experience using our MariaDB Vector for semantic search in their e-commerce platform Bagisto, the open-source platform built on Laravel, the Bagisto team is now focusing on another topic that is close to our hearts at the MariaDB Foundation: migrating from MySQL to MariaDB. How much effort is… From MySQL 8.0 to MariaDB 11.8 LTS: The Bagisto Experience appeared first on MariaDB.org

11月25日周三

  • Laracon EU 2027

    Laracon EU 2027 brings together PHP and Laravel developers from around the world in Amsterdam, the Netherlands, from April 5–7, 2027. The conference features two days of inspiring talks and a dedicated workshop day, covering Laravel, modern PHP development, software architecture, artificial intelligence, performance, testing, and building real-world applications. Whether you're an experienced Laravel developer or just getting started, Laracon EU offers an opportunity to learn from industry experts, discover new technologies, exchange ideas, and connect with the international PHP and Laravel c…

11月14日周六

  • 低危03:54漏洞公告LaravelPHPGitHub Advisory Database

    Laravel: Task Output Injection - Concurrency Process

    受影响: composer:laravel/framework < 12.71.0 → 12.71.0, composer:laravel/framework >= 13.0.0, < 13.40.0 → 13.40.0 If a concurrency task prints user-controlled text, an attacker can forge the framework's internal result message and achieve remote code execution in certain conditions Pre-reqs Insecure code and insecure handling of user provided input (devs trust user-provided input) : 1. App has a route that reaches Concurrency::run() (Not by default, it requires app code) 2. The task writes user-controlled data to stdout (echo/print/dd of input, hand-built JSON via string concat, passthrough of tool output)…

11月13日周五

  • 中危03:18漏洞公告LaravelPHPGitHub Advisory Database

    code16/sharp: Arbitrary class instantiation through the embed_key API parameter

    受影响: composer:code16/sharp < 9.23.0 → 9.23.0, composer:code16/sharp >= 10.0.0-beta.1, < 10.0.0-beta.4 → 10.0.0-beta.4 An authenticated attacker can instantiate any class in the PHP application by using the embed_key parameter across multiple API endpoints. The instantiation is performed by the Laravel container. As a result, the __construct() method of the class is called and all constructor dependencies are resolved. The attacker cannot specify parameter values and cannot call any arbitrary method. Patches The problem has been patched in 9.23.0 and pre-release version 10.0.0-beta.4. An additional check was ad…

11月5日周四

10月28日周三

10月24日周六

  • Laravel TokenGuard authentication bypass through non-string API credentials

    受影响: composer:laravel/framework >= 13.0.0, < 13.29.0 → 13.29.0, composer:laravel/framework < 12.68.0 → 12.68.0 Laravel's built-in TokenGuard, when configured with a standard token-based API guard, may be bypassed to authenticate as an arbitrary existing user without knowledge of their valid API token. Under certain database configurations (MySQL/MariaDB) an attacker can submit a specially crafted, non-string credential value that is mishandled during the authentication lookup, causing the underlying query to match an unintended user record rather than failing authentication as expected. Impact An unauth…

  • 中危06:47漏洞公告LaravelPHPGitHub Advisory Database

    Laravel relationship inclusion can trigger unauthorized data destruction

    受影响: composer:laravel/framework >= 12.45.0, < 12.68.0 → 12.68.0, composer:laravel/framework >= 13.0.0, < 13.27.0 → 13.27.0 A vulnerability in how relationship inclusion is processed on certain read endpoints. Under specific conditions, a request to a read-only endpoint can be crafted to trigger a destructive database operation on a related table, rather than simply retrieving data. Impact A user with only read access could cause irreversible data loss (e.g., a related table being emptied), without needing any write permissions. This could result in denial of service and loss of data integrity for affected applicati…

10月23日周五

10月21日周三

10月16日周五

  • MariaDB Foundation Newsletter – 15 October 2026

    The first half of October belonged to the ecosystem. The MariaDB Ecosystem Hub passed 200 entries six months after launch, Laravel 13 gained native MariaDB Vector support through community contributors, and Frappe and Solanica joined the Foundation as Silver Sponsors. The Foundation’s testing framework learned PostgreSQL, reproduced a regression reported by Mark Callaghan and confirmed… MariaDB Foundation Newsletter – 15 October 2026 appeared first on MariaDB.org

10月15日周四

10月7日周三

  • Laravel 13 now supports MariaDB Vector natively

    If your Laravel application runs on MariaDB, you can add semantic search to it without a second database, an external vector service or an extra package. Since Laravel 13.28, vector columns, vector indexes and similarity queries work on MariaDB out of the box. A large part of that work came from community contributors, including Mohamed… Laravel 13 now supports MariaDB Vector natively appeared first on MariaDB.org

10月2日周五

10月1日周四

9月28日周一

9月23日周三

9月11日周五

9月10日周四