Description
WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.
Remediation
References
Related Vulnerabilities
Jetty Allocation of Resources Without Limits or Throttling Vulnerability (CVE-2024-6762)
WordPress Other Vulnerability (CVE-2005-2612)
PHP DEPRECATED: Code Vulnerability (CVE-2014-9426)
PHP Out-of-bounds Write Vulnerability (CVE-2021-21704)
PrestaShop Improper Input Validation Vulnerability (CVE-2023-39530)