CVE-2026-142186
Glide through 4.2.1 contains a resource limit bypass vulnerability …
Glide through 4.2.1 contains a resource limit bypass vulnerability that allows remote unauthenticated attackers to exceed max_image_size 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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/thephpleague/glide/blob/4.2.1/src/Manipulators/Border.php#L173-L189
- github.com/thephpleague/glide/blob/4.2.1/src/Manipulators/Watermark.php#L88-L118
- www.vulncheck.com/advisories/glide-through-4.2.1-max-image-size-bypass-via-border-and-wate
- nvd.nist.gov/vuln/detail/CVE-2026-142186
- cve.org/CVERecord?id=CVE-2026-142186
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.