GitHub Advisory Database
GHSA-6pjm-hmvf-h4rr
image-optimizer allows PHAR deserialization
Details
image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | spatie/image-optimizer | All versions before 1.7.3 (fixed in 1.7.3) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-34515
- https://github.com/spatie/image-optimizer/issues/210
- https://github.com/spatie/image-optimizer/pull/211
- https://github.com/spatie/image-optimizer/commit/89847b55fbb44b3bcde0283bff8cc5abb5e51b82
- https://github.com/spatie/image-optimizer
- https://github.com/spatie/image-optimizer/compare/1.7.2...1.7.3