Skip to content
Medium 5.3

Denial of service in email validation via oversized Unicode domains

GHSA-cvfq-f547-rv2g First seen on SecPulse

Summary

Impact

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...

Affected packages

PackageAffected → Fixed
composerlaravel/framework
<12.72.0→ >=12.72.0
composerlaravel/framework
<13.43.0→ >=13.43.0
Original description The description as published by the source.

Impact

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 depends on application input limits and deployment configuration.

Patches

Laravel Framework 12.72.0 and 13.43.0 reject email addresses longer than 254 bytes before invoking the email validator. Upgrade to a patched release in your maintenance line.

The Laravel-side mitigation was introduced in https://github.com/laravel/framework/pull/62347.

Workarounds

Ensure oversized email inputs are rejected before email validation runs. For example, place the bail and max:254 rules before email, using bail|max:254|email. Configure appropriate request-body limits as additional protection.

References

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details