WordPress Core <= 5.0.3 - Path Traversal and Local File Inclusion

6.5
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
CVE CVE-2019-8943
CVSS 6.5 (Medium)
Publicly Published February 19, 2019
Last Updated December 5, 2022
Researchers Wilfried Becard
RIPS Technologies

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.

References

Share

1 affected software package

Software Type Core
Patched? Yes
Remediation Update to version 5.0.3, or a newer patched version
Affected Version
  • <= 5.0.2
Patched Version
  • 5.0.3

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation