Last updated: 25 November 2026. This article is based on Laravel's published GitHub advisory and its framework changelog, plus secondary coverage. I did not reproduce the denial-of-service behavior itself; building or demonstrating a working resource-exhaustion exploit is out of scope for this article. SeeHow this was checked.

A video and several write-ups this week pointed at a denial-of-service issue affecting Laravel around version 13.37. The short version: Laravel's GitHub security advisories list an unauthenticated denial-of-service bug, CVSS 7.5, fixed in framework releases 13.38.0 and 12.74.0. If your app is pinned to 13.37.x or an older 13.x release, or an older 12.x release before 12.74.0, you should upgrade. This article explains what the advisory says, what actually changed in the framework to fix it, and what to check in your own app regardless of this specific bug.

What the advisory says

  • Advisory: GHSA-8h64-cpq2-9h2g, published by Laravel on 23 November 2026, according to coverage of the advisory.
  • Severity: CVSS 7.5. No CVE ID was available in the sources I could read.
  • Impact, as described in coverage: a JSON request of ordinary size could make a Laravel application use far more CPU and memory than expected while processing it, with no authentication required, and a small number of such requests at once could exhaust available PHP workers.
  • Affected: framework releases before 13.38.0 on the 13.x line, and before 12.74.0 on the 12.x line.
  • Fixed in: 13.38.0 and 12.74.0.
  • Timeline: one comment under the video that first drew attention to this says the bug was reported to Laravel by email on 20 October 2026 and fixed in less than a day; the advisory itself was made public over a month later, on 23 November.

That gap between a quiet fix and a public advisory is normal practice for frameworks: ship the patch, let users upgrade, then publish details once the fix has had time to spread. It does mean that an app that upgraded in October for unrelated reasons may already be safe without anyone on the team realizing a security fix was included.

What changed in the framework

Laravel's public changelog between 13.37.0 and 13.38.0 includes a commit, dated 20 October 2026, titled "limit bytes," touching Illuminate\Foundation\Http\Middleware\TransformsRequest, the base class behind Laravel's input-cleaning middleware (TrimStrings, ConvertEmptyStringsToNull, and your own middleware that extends it). Before the fix, this middleware walked every key in the request's input recursively with no limit on how much key data it would process. After the fix, it tracks the cumulative byte length of every key it walks across the request and throws a PostTooLargeException (HTTP 413) once that total passes a limit, which defaults to 20 MiB of key bytes per request, once the data is nested or repeated across many entries.

That shape matches the advisory's description: a payload that looks ordinary in overall size can still contain an enormous amount of key data once you count nested arrays and repeated structures, because the middleware's old behavior processed every key regardless of how many there were or how deep they were nested. The fix caps that cost directly rather than relying on a general request-size limit, since a request can be small in bytes on the wire while still describing an extremely large number of keys once decoded.

I read this commit and its accompanying test in Laravel's public GitHub history, where it is visible to anyone, as it is part of the framework's open-source changelog. I did not execute the before-and-after behavior to measure the actual resource cost, and I am not including exploit parameters or amplification ratios here. If you want to see the change yourself, it's in the laravel/framework repository's history between the 13.37.0 and 13.38.0 tags.

What to do

  1. Check your installed version. Run php artisan --version or check composer.lock for laravel/framework. If it's below 13.38.0 on the 13.x line, or below 12.74.0 on the 12.x line, you are on an affected release.
  2. Upgrade. composer require laravel/framework:^13.38.0 --update-with-dependencies for 13.x, or ^12.74.0 for 12.x. Follow Laravel's upgrade guide for your version jump, and test your application's request validation afterward, since the new key-byte limit can reject payloads that previously went through, though only ones with an unusually large amount of key data.
  3. Don't assume an October upgrade covered it. If your team bumped the framework version last month for an unrelated reason, check the specific version you landed on against 13.38.0 or 12.74.0 rather than assuming any recent upgrade included the fix.
  4. Review deployment-level protections regardless of this CVE. A web server or reverse proxy request body size limit, a timeout on request processing, and rate limiting at the edge all reduce the blast radius of any future bug of this kind, not just this one.

A related fix from the same batch

Coverage of the same advisory window mentions a second, separate, moderate-severity validation bug: empty-string array keys could slip past wildcard validation rules like items.*, skipping checks such as required_if and Rule::forEach(). That one is also fixed in 13.43.0 and 12.73.0, which is a reason to move past 13.38.0 and toward the current release rather than stopping at the minimum patched version.

General defenses worth having anyway

Whatever this specific bug turns out to involve in full technical detail, the categories of defense are standard and worth checking on any Laravel app:

  • Body size limits. Set client_max_body_size in nginx, or the equivalent in your web server, to a sane value for your application, not the default.
  • PHP limits. post_max_size, memory_limit and max_execution_time in php.ini bound how much damage one request can do to one worker.
  • Worker-level timeouts. PHP-FPM's request_terminate_timeout (or your runtime's equivalent) stops a single pathological request from tying up a worker indefinitely.
  • Rate limiting at the edge. A CDN or reverse proxy that throttles by IP reduces how many expensive requests an attacker can fire at once, which matters most for an unauthenticated vulnerability.
  • Stay current. Security fixes for actively maintained frameworks often ship quietly before the advisory goes public. Running the latest patch release of your major version, and reviewing the changelog periodically, catches more than watching for advisories alone.

Related Dev Talk articles

Frequently asked questions

What was the Laravel 13.37 denial-of-service issue?

Laravel's GitHub advisory GHSA-8h64-cpq2-9h2g describes an unauthenticated denial-of-service bug, CVSS 7.5, where a crafted JSON request could make the application consume far more CPU and memory than expected, affecting releases before 13.38.0 and 12.74.0.

How do I know if my app is affected?

Check your installed laravel/framework version. If it is below 13.38.0 on the 13.x branch, or below 12.74.0 on the 12.x branch, upgrade.

Is there a workaround if I can't upgrade immediately?

No specific workaround was published for this bug beyond upgrading. General request-size limits, timeouts and rate limiting at your edge reduce exposure to this class of issue while you plan the upgrade.

What actually changed in the fix?

Laravel's input-cleaning middleware now tracks the cumulative byte length of the keys it processes per request and rejects the request with an HTTP 413 once that total passes a limit, instead of processing an unbounded number of keys.

Were there other security fixes around the same time?

Yes. A moderate-severity validation bug involving empty-string array keys bypassing wildcard rules was fixed in the same general window, in 13.43.0 and 12.73.0.

update log

  • 25 November 2026: first version.
  • To recheck on each update: the CVE ID if one is later assigned, the exact advisory text once directly reachable, and whether further related fixes land in subsequent releases.

Sources

Originally published on DEV Talk.