CVE-2024-34515spatie image_optimizer
High 8.8
Follow: this CVE · spatie · spatie image_optimizer We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- Yes
- Published
- May 5, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
What to do
- Apply the vendor's security update for image_optimizer.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | spatie/image-optimizer |
< 1.7.3 |
1.7.3 |
composer require "spatie/image-optimizer:^1.7.3" |
Per OSV / GitHub Advisories (GHSA-6pjm-hmvf-h4rr). Check the version in your lockfile before upgrading.
Affected products
- spatie · image_optimizer
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.