CVE-2026-142186: Glide through 4.2.1 max_image_size Bypass via Border and Watermark Dimensions
Glide through 4.2.1 contains a resource limit bypass vulnerability that allows remote unauthenticated attackers to exceed maximagesize by supplying large border or watermark dimensions. Attackers can send unsigned requests with large border widths or markw and markh values to allocate oversized images, exhausting PHP memory and CPU.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments of composer/league/glide through version 4.2.1 are exposed when remote users can submit image-manipulation requests. Authentication is not required, and unsigned requests can be used.
What request parameters are used to trigger the resource exhaustion?
An attacker can supply large border widths or large watermark width and height values through the markw and markh parameters. These dimensions can cause Glide to allocate oversized images beyond the configured max_image_size limit.
What is the operational impact of successful exploitation?
Successful requests can exhaust PHP memory and CPU. This can degrade availability or cause a denial of service for the affected image-processing deployment.