CVE-2024-34515 json
image-optimizer allows PHAR deserialization
published 2024-05-05 2 y ago modified 2026-06-17 4 mo ago also GHSA-6pjm-hmvf-h4rr , EUVD-2024-1463
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
Patch / fix
- packagist spatie/image-optimizer 1.7.3
- github.com/spatie/image-optimizer@89847b5 commit
- github.com/spatie/image-optimizer#211 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.88% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | spatie/image-optimizer | <1.7.3 |
1.7.3 |
Affected products
- spatie image_optimizer
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/spatie/image-optimizer/pull/211
web
-
github.com
/spatie/image-optimizer/commit/89847b55fbb44b3bcde0283bff8cc5abb5e51b82
web
-
github.com
/spatie/image-optimizer/issues/210
web
-
github.com
/spatie/image-optimizer/compare/1.7.2...1.7.3
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-34515
advisory
-
github.com
/spatie/image-optimizer
package
Sources
- CVE List CVE-2024-34515
- GitHub Advisory GHSA-6pjm-hmvf-h4rr
- NVD CVE-2024-34515
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.