Laravel: Temporary signed URL expiration bypass
Package Affected versions Patched versions Description Impact When PHP's max_input_vars limit causes the expires query parameter to be dropped from the parsed query, Laravel's signed URL validation ca
Package
laravel/framework (Composer)Affected versions
< 12.72.0 >= 13.0.0, < 13.41.0Patched versions
12.72.0 13.41.0Description
Impact
When PHP's max_input_vars limit causes the expires query parameter to be dropped from the parsed query, Laravel's signed URL validation can still verify the signature against the raw query string. signatureHasNotExpired() then treats the URL as non-expiring, so an expired temporary signed URL may be accepted. Exploitation requires a request line long enough to exceed max_input_vars, which depends on server and proxy limits.
Patches
This issue has been patched in Laravel 12.72.0 and 13.41.0: laravel/framework#62349. Users should upgrade to one of these versions or later.
Workarounds
- Limit URL length at the web server. Default nginx and Apache settings already reject the long URL the attack needs.
- If web server configuration is unavailable, add a middleware ahead of
signedthat returns an error when the raw query has more pairs thanmax_input_varsor whenexpiresappears in the raw query but is missing from the parsed one.
References
- GHSA-v5ch-g375-82r6
- https://nvd.nist.gov/vuln/detail/CVE-2026-142645
- laravel/framework#62349
- laravel/framework@b3b868a
- laravel/framework@ba9e21e
- https://github.com/laravel/framework/releases/tag/v12.72.0
- https://github.com/laravel/framework/releases/tag/v13.41.0
Severity
Moderate CVSS overall score This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS). / 10CVSS v3 base metrics
Attack vector Network Attack complexity High Privileges required None User interaction None Scope Unchanged Confidentiality Low Integrity Low Availability None CVSS v3 base metrics Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability. Attack complexity: More severe for the least complex attacks. Privileges required: More severe if no privileges are required. User interaction: More severe when no user interaction is required. Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope. Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user. Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user. Availability: More severe when the loss of impacted component availability is highest. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NEPSS score
Weaknesses
Weakness CWE-613Insufficient Session Expiration
According to WASC, Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization. Learn more on MITRE.CVE ID
CVE-2026-142645GHSA ID
GHSA-v5ch-g375-82r6Source code
laravel/frameworkCredits
-
sajjadhossainshohag Reporter
-
crynobone Remediation developer
-
olivernybroe Coordinator
Uh oh!
There was an error while loading. Please reload this page.
See something to contribute? Suggest improvements for this vulnerability.