CVE-2024-34515
image-optimizer allows PHAR deserialization
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.8
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
- Record
CVE-2024-34515- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-502
- Updated
- 2026-11-02
EUVDEUVD-2024-1463
8.8
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
- Record
EUVD-2024-1463- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6pjm-hmvf-h4rr
8.7
image-optimizer allows PHAR deserialization
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
- Record
GHSA-6pjm-hmvf-h4rr- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-502
- Updated
- 2026-11-02
NVD
8.8
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
- Record
CVE-2024-34515- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-502
- Updated
- 2026-11-02
OSV
8.8
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
- Record
CVE-2024-34515- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-6pjm-hmvf-h4rr
8.7
image-optimizer allows PHAR deserialization
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
- Record
GHSA-6pjm-hmvf-h4rr- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-502
- Updated
- 2026-11-02
OSVCLSA-2026-1793215035 No score
TuxCare security update for spatie/image-optimizer (1 CVE)
TuxCare rebuilt spatie/image-optimizer to address 1 CVE. Fixed in 1.5.0-p1+tuxcare.
- Record
CLSA-2026-1793215035- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
spatie/image-optimizerPackagist |
before 1.7.3 | 1.7.3 |
spatie/image-optimizerTuxCare:Packagist |
1.5.0 up to 1.5.0-p1+tuxcare | 1.5.0-p1+tuxcare |
spatie/image-optimizerPackagist |
before 1.7.3, plus listed versions 0.0.10.0.20.0.30.0.41.0.0 Show 34 moreShow less1.0.11.0.101.0.111.0.121.0.131.0.141.0.31.0.41.0.51.0.61.0.71.0.81.0.91.1.01.1.11.1.21.1.31.1.41.1.51.1.61.2.01.2.11.3.01.3.11.3.21.4.01.5.01.6.11.6.21.6.31.6.41.7.01.7.11.7.2 |
1.7.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-34515 is a high vulnerability (CVSS 8.8) in Spatie Image Optimizer, published May 5, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.88%, the 79th percentile. Fixed in spatie/image-optimizer 1.7.3.
References
github.com/spatie/image-optimizer/issues/210
github.com/spatie/image-optimizer/compare/1.7.2...1.7.3
github.com/spatie/image-optimizer/pull/211
nvd.nist.gov/vuln/detail/CVE-2024-34515
github.com/spatie/image-optimizer/commit/89847b55fbb44b3bcde0283bff8cc5abb5e51b82
github.com/advisories/GHSA-6pjm-hmvf-h4rr
github.com/CVEProject/cvelistV5/tree/main/cves/2024/34xxx/CVE-2024-34515.json
github.com/spatie/image-optimizer