Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. spatie/image-optimizer
  4. ›
  5. CVE-2024-34515

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

May 5, 2024 (updated May 6, 2024)

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

References

  • github.com/advisories/GHSA-6pjm-hmvf-h4rr
  • github.com/spatie/image-optimizer
  • github.com/spatie/image-optimizer/commit/89847b55fbb44b3bcde0283bff8cc5abb5e51b82
  • github.com/spatie/image-optimizer/compare/1.7.2...1.7.3
  • github.com/spatie/image-optimizer/issues/210
  • github.com/spatie/image-optimizer/pull/211
  • nvd.nist.gov/vuln/detail/CVE-2024-34515

Code Behaviors & Features

Detect and mitigate CVE-2024-34515 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.3

Fixed versions

  • 1.7.3

Solution

Upgrade to version 1.7.3 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

packagist/spatie/image-optimizer/CVE-2024-34515.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.