# CVE-2024-34515: image-optimizer allows PHAR deserialization

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.88%, higher than 80% of CVEs (2026-12-01)
- Published: 2024-05-05T00:00:00.000Z
- Modified: 2026-06-17T07:33:32.920Z
- Also known as: GHSA-6pjm-hmvf-h4rr
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- spatie image_optimizer: up to 1.7.3
- spatie/image-optimizer (Packagist): before 1.7.3

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- GitHub: CVSS:4.0 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`

## References

- <https://github.com/spatie/image-optimizer/issues/210> (web)
- <https://github.com/spatie/image-optimizer/compare/1.7.2...1.7.3> (web)
- <https://github.com/spatie/image-optimizer/pull/211> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34515> (advisory)
- <https://github.com/spatie/image-optimizer/commit/89847b55fbb44b3bcde0283bff8cc5abb5e51b82> (web)
- <https://github.com/spatie/image-optimizer> (package)

## Sources

- CVE List: [CVE-2024-34515](https://www.cve.org/CVERecord?id=CVE-2024-34515), CVE Terms of Use, modified 2024-08-21
- GitHub Advisory Database: [GHSA-6pjm-hmvf-h4rr](https://github.com/advisories/GHSA-6pjm-hmvf-h4rr), CC-BY-4.0, modified 2024-08-21
- NVD: [CVE-2024-34515](https://nvd.nist.gov/vuln/detail/CVE-2024-34515), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-34515 · Whole record: https://cve.day/CVE-2024-34515.json · Rebuilt by cve.day 2026-11-25T22:58:39.951Z
