CVE-2026-142186
published medium CVSS 4.0 · 6.9Glide through 4.2.1 max_image_size Bypass via Border and Watermark Dimensions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| thephpleague | — | Glide0 through 4.2.1 · Other versions: unaffected | Affected | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| thephpleague | Glide | 0 through 4.2.1 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-789 Memory Allocation with Excessive Size Value
References
3- https://github.com/thephpleague/glide/blob/4.2.1/src/Manipulators/Border.php#L173-L189
- https://github.com/thephpleague/glide/blob/4.2.1/src/Manipulators/Watermark.php#L88-L118
- VulnCheck Advisory: Glide through 4.2.1 max_image_size Bypass via Border and Watermark Dimensions https://www.vulncheck.com/advisories/glide-through-4.2.1-max-image-size-bypass-via-border-and-watermark-dimensions
Provider assertions
2VulnCheck · cna
Glide through 4.2.1 max_image_size Bypass via Border and Watermark Dimensions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f08e232466235f7d023f2e41b50bffa8e79a264585599f454847c1ecd16e0287
- Ingested
- 02 Dec 2026, 19:48:38 UTC
- Source record
- Official CVE record