# Laravel publishes eight security advisories in two weeks, two of them unauthenticated denial-of-service flaws

Laravel has published eight advisories for its framework since Nov 18, four of them on Dec 2. Two let an unauthenticated attacker tie up an application's PHP workers; Laravel 13.45.0 and 12.75.0 fix all eight.

By [AI Security Times](https://aisecuritytimes.com/authors/ai-security-times) · Published 2026-12-03T04:23:00Z
Canonical: https://aisecuritytimes.com/tech/laravel-eight-advisories-denial-of-service

## Key facts

- CVE: CVE-2026-142612, CVE-2026-142610, CVE-2026-142625, CVE-2026-142611
- Severity: CVSS 7.5, High
- Status: Patch available
- Product: Laravel framework (laravel/framework on Packagist)
- Affected: Laravel 13 before 13.45.0 and Laravel 12 before 12.75.0; the advisories list no fixes for Laravel 11 or older
- Fixed in: 13.45.0 and 12.75.0, released on Dec 1, 2026

### What to do now

1. Update to Laravel 13.45.0 or 12.75.0 or later with composer update laravel/framework.
2. If you are still on Laravel 11 or older, plan the move to 12 or 13: Laravel 11 stopped receiving security fixes on March 12, 2026.
3. If you cannot update yet, put a bounding rule before the affected validation rules, such as bail|max:254|email, or bail|numeric|min:0|max:100|multiple_of:2, as the advisories suggest.

Laravel has published eight security advisories for its PHP framework in its GitHub repository since Nov 18. Four of them appeared on Dec 2. Two are rated high: both let an unauthenticated attacker use up an application's PHP workers with a handful of requests. Packagist counted about 31.2 million installs of laravel/framework in the past month.

All eight are fixed in Laravel 13.45.0 and 12.75.0, which were released on Dec 1.

| Advisory | Severity | First fixed in |
|---|---|---|
| Crafted JSON request body (CVE-2026-142612) | High (7.5) | 13.38.0 (Oct 20) and 12.74.0 (Nov 24) |
| Numeric rules with extreme exponents (CVE-2026-142610) | High (7.5) | 13.44.1 and 12.74.0 (Nov 24) |
| Email rule with oversized Unicode domains (CVE-2026-142625) | Medium (5.3) | 13.43.0 (Nov 17) and 12.72.0 (Nov 10) |
| Empty array key skips wildcard rules (CVE-2026-142611) | Medium (5.4) | 13.43.0 and 12.73.0 (Nov 17) |
| distinct rule takes quadratic time | Medium (5.3) | 13.45.0 and 12.75.0 (Dec 1) |
| distinct bypass with invalid UTF-8 keys | Medium (5.3) | 13.45.0 and 12.75.0 |
| distinct bypass with empty keys | Medium (5.3) | 13.45.0 and 12.75.0 |
| Client IP spoofing through X-Forwarded-For | Medium (5.3) | 13.45.0 (Laravel 13 only) |

The scores are CVSS 3.1 ratings from the advisories. The four advisories published on Dec 2 have no CVE numbers yet.

## The JSON body flaw

The most serious advisory is the shortest. "A specially crafted JSON request of ordinary size can make a Laravel application use far too much CPU and memory while it handles the request," Laravel writes. "An unauthenticated attacker can send a small number of these requests at once to use up every PHP worker and take the application offline."

The pull request that brought the fix to Laravel 12 explains the cause. Two middleware classes that Laravel runs on every request, TrimStrings and ConvertEmptyStringsToNull, build a new copy of an array's key for each of its elements. A request with one very long key holding a large array therefore multiplies the work: "A ~590 KB JSON body (a ~295 KB key with ~147k items) causes ~43 GB of string building and ~30s of CPU." Because the middleware runs "globally before routing and auth", no login is needed.

The fix keeps a running total of key bytes for each request and rejects the request with an HTTP 413 error once it passes 20 MB. Laravel 13 received it on Oct 20; the Laravel 12 fix followed on Nov 24.

## Validation rules that cost too much

Three more advisories concern validation rules that do far more work than the input justifies:

- **Numeric rules.** The multiple_of rule, and the gt, gte, lt and lte rules when they compare two numeric fields, expand numbers "using arbitrary-precision arithmetic without bounding its exponent". A value in scientific notation with a huge exponent can exhaust PHP's memory limit.
- **Email addresses.** With the PHP intl extension enabled, an oversized address with crafted non-ASCII domain names triggers expensive Unicode processing. The fixed versions reject addresses longer than 254 bytes before validating them.
- **The distinct rule.** On large wildcard arrays, distinct "could take quadratic time". Laravel says "a request of roughly 220 KB could exceed the default PHP execution time limit".

## Rules that let bad input through

The other three validation advisories go the other way: input that should be rejected passes. In one, an array element whose key is an empty string, such as `{"items": {"": {"name": "..."}}}`, skips every rule attached to items.*. In two others, duplicate values slip past the distinct rule when they sit under array keys with invalid UTF-8 or under empty keys.

The last advisory affects only Laravel 13. When an application trusts all proxies (trusted proxies set to *), a client could spoof its IP address through the left-most X-Forwarded-For value. Applications that rely on the client IP for rate limiting or access rules should check that setting.

## What to do

Update to Laravel 13.45.0 or 12.75.0. Laravel 12 receives security fixes until Feb 24, 2027. Laravel 11 stopped receiving them on March 12, 2026, and the advisories list no fixes for it or for older versions. Applications still on those versions remain exposed to the JSON body flaw, which needs no login and no particular validation rule.

Related: [ws, websocket-driver and http-proxy-middleware fix flaws that let one client crash a server](/tech/nodejs-websocket-libraries-dos-fixes) · [Drupal fixes 'highly critical' installer flaw as attacks start against live sites](/cybersecurity/drupal-core-installer-flaw-exploited)

## Sources

1. [Laravel security advisories (laravel/framework on GitHub)](https://github.com/laravel/framework/security/advisories) (Project)
2. [GHSA-8h64-cpq2-9h2g: Denial of service via crafted JSON request body](https://github.com/laravel/framework/security/advisories/GHSA-8h64-cpq2-9h2g) (Advisory)
3. [GHSA-c25c-x5r7-2v5m: Numeric validation can exhaust resources via extreme exponent input](https://github.com/laravel/framework/security/advisories/GHSA-c25c-x5r7-2v5m) (Advisory)
4. [GHSA-jrc9-gpx2-4p3r: Denial of Service using the distinct validation rule](https://github.com/laravel/framework/security/advisories/GHSA-jrc9-gpx2-4p3r) (Advisory)
5. [laravel/framework pull request 62582: Backport TransformsRequest key byte limit](https://github.com/laravel/framework/pull/62582) (Project)
6. [Laravel release notes: support policy](https://laravel.com/docs/13.x/releases) (Project)
7. [laravel/framework on Packagist](https://packagist.org/packages/laravel/framework) (Packagist)

Topics: [Vulnerabilities](https://aisecuritytimes.com/topics/vulnerabilities), [Web security](https://aisecuritytimes.com/topics/web-security), [Patches](https://aisecuritytimes.com/topics/patches)
