Vulnerability DatabaseCVE-2026-142645

CVE-2026-142645: 
Laravel vulnerability analysis and mitigation

Overview

CVE-2026-142645 is a signed URL expiration bypass vulnerability in the Laravel web application framework. When PHP's max_input_vars limit causes the expires query parameter to be dropped from the parsed query array, Laravel's signatureHasNotExpired() function treats the URL as non-expiring and accepts it even after its intended expiry time. The vulnerability affects Laravel framework versions prior to 12.72.0 and versions 13.0.0 through 13.40.x (prior to 13.41.0). It was disclosed on November 11, 2026 via a GitHub Security Advisory and carries a CVSS v3.1 base score of 4.8 (Medium) (GitHub Advisory).

Technical details

The root cause is classified as CWE-613 (Insufficient Session Expiration). Laravel's UrlGenerator::signatureHasNotExpired() method retrieves the expires parameter via $request->query('expires'), which relies on PHP's parsed $_GET superglobal. When a request's query string contains enough parameters to exceed PHP's max_input_vars limit, PHP silently drops subsequent parameters — including expires — from the parsed array. Because the signature is verified against the raw query string (which still contains expires), the signature check passes, but signatureHasNotExpired() receives null for expires and treats the URL as permanent. Exploitation requires crafting a request with a query string long enough to push expires past the max_input_vars threshold, which depends on server and proxy URL length limits (GitHub Advisory, Fix PR).

Impact

Successful exploitation allows an unauthenticated network attacker to reuse expired temporary signed URLs, bypassing time-based access controls. This can result in limited unauthorized data access (low confidentiality impact) and minor integrity impact, such as performing actions that should no longer be permitted via the expired link. Availability is not affected. The practical impact depends on what resources or actions the signed URLs protect in a given application (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation is constrained by high attack complexity — the attacker must craft a request with a query string long enough to exceed max_input_vars, and default nginx and Apache configurations already reject such oversized requests, significantly limiting the attack surface (GitHub Advisory, Feedly).

Exploitation steps

  1. Identify target: Locate a Laravel application that uses temporary signed URLs (e.g., password reset links, file download links) and is running a vulnerable framework version (< 12.72.0 or 13.0.0–13.40.x).
  2. Obtain an expired signed URL: Acquire a legitimate but expired temporary signed URL, either by waiting for a previously issued link to expire or by intercepting one.
  3. Craft an oversized query string: Prepend a large number of dummy query parameters (e.g., a1=x&a2=x&...&aN=x) to the expired signed URL's query string, ensuring the total number of parameters exceeds the server's max_input_vars limit (default: 1000 in PHP) and that expires appears after this threshold.
  4. Send the crafted request: Submit the HTTP request with the oversized query string to the target endpoint protected by Laravel's signed URL middleware.
  5. Bypass expiration check: PHP drops expires from the parsed query due to max_input_vars truncation; signatureHasNotExpired() receives null and treats the URL as non-expiring, granting access despite the link being expired (GitHub Advisory, Fix PR).

Indicators of compromise

  • Network: HTTP requests to signed URL endpoints with unusually long query strings containing a large number of dummy parameters (exceeding PHP's max_input_vars threshold, typically >1000 query pairs); requests where expires appears in the raw query string but not in the parsed parameters.
  • Logs: Web server access logs showing requests to signed URL routes with query strings of abnormal length; application logs showing successful signed URL validation for URLs with a past expires timestamp in the raw query string.
  • Application Behavior: Successful access to resources or actions via signed URLs that should have expired, particularly when the request query string is unusually long.

Mitigation and workarounds

Upgrade to Laravel framework version 12.72.0 or 13.41.0, which fix the issue by falling back to parsing expires directly from the raw QUERY_STRING (and VAPOR_RAW_QUERY_STRING for Laravel Vapor environments) when it is absent from the parsed query (GitHub Release v12.72.0, Fix Commit). As a workaround, enforce URL length limits at the web server level — default nginx and Apache configurations already reject the oversized requests required for exploitation. If web server configuration is unavailable, add a middleware that returns an error when the raw query string contains more parameter pairs than max_input_vars, or when expires is present in the raw query but absent from the parsed one (GitHub Advisory).

Community reactions

The vulnerability was reported by security researcher sajjadhossainshohag and remediated by Laravel core contributor crynobone, with coordination by olivernybroe. The fix was merged by Taylor Otwell on November 6, 2026 and included in the v12.72.0 release on November 10, 2026. Community reaction has been limited given the moderate severity and high exploitation complexity; downstream projects such as Hypervel have already synced the upstream fix (Fix PR, GitHub Release v12.72.0).

Additional resources


Source: This report was generated using AI

Related Laravel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-142642MEDIUM5.4
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142644MEDIUM5.3
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142643MEDIUM5.3
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142647MEDIUM4.8
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142645MEDIUM4.8
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management