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

Published May 5, 2024
·
Updated

image-optimizer allows PHAR deserialization

Other sources

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

— GitHub

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

— MITRE

Affected Software

2 affected componentsFixes available
composer/spatie/image-optimizer<1.7.3
1.7.3
composer/spatie/image-optimizer<1.7.3
1.7.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/spatie/image-optimizer to a version that resolves this vulnerability.

    Fixed in 1.7.3

Event History

May 5, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·09:30 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-34515?

CVE-2024-34515 has a high severity due to the risk of remote code execution through PHAR deserialization.

2

How do I fix CVE-2024-34515?

To fix CVE-2024-34515, upgrade to version 1.7.3 or later of the spatie/image-optimizer package.

3

What software is affected by CVE-2024-34515?

CVE-2024-34515 affects the spatie/image-optimizer package versions prior to 1.7.3.

4

What is PHAR deserialization in the context of CVE-2024-34515?

PHAR deserialization in CVE-2024-34515 refers to an exploit that triggers vulnerabilities when PHAR files are incorrectly handled.

5

What specific function is mentioned in CVE-2024-34515 as being vulnerable?

The vulnerable function mentioned in CVE-2024-34515 is `file_exists()`, which improperly handles the `phar://` protocol.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203