WordPress Core < 5.0.1 - Remote Code Execution

8.8
Improper Control of Generation of Code ('Code Injection')
CVE CVE-2019-8942
CVSS 8.8 (High)
Publicly Published February 19, 2019
Last Updated January 22, 2024
Researcher Simon Scannell

Description

WordPress before 4.9.9 and 5.x before 5.0.1 allows remote code execution because an _wp_attached_file Post Meta entry can be changed to an arbitrary string, such as one ending with a .jpg?file.php substring. An attacker with author privileges can execute arbitrary code by uploading a crafted image containing PHP code in the Exif metadata. Exploitation can leverage CVE-2019-8943.

References

Share

1 affected software package

Software Type Core
Patched? Yes
Remediation Update to one of the following versions, or a newer patched version: 3.7.28, 3.8.28, 3.9.26, 4.0.25, 4.1.25, 4.2.22, 4.3.18, 4.4.17, 4.5.16, 4.6.13, 4.7.12, 4.8.8, 4.9.9, 5.0.1
Affected Versions
  • 5.0 - 5.0
  • < 3.7
  • 4.8 - 4.8.7
  • 4.9 - 4.9.8
Expand to see 11 more affected version ranges.
  • 3.7 - 3.7.27
  • 3.8 - 3.8.27
  • 3.9 - 3.9.25
  • 4.0 - 4.0.24
  • 4.1 - 4.1.24
  • 4.2 - 4.2.21
  • 4.3 - 4.3.17
  • 4.4 - 4.4.16
  • 4.5 - 4.5.15
  • 4.6 - 4.6.12
  • 4.7 - 4.7.11
Patched Versions
  • 3.7.28
  • 3.8.28
  • 3.9.26
  • 4.0.25
Expand to see 10 more patched versions.
  • 4.1.25
  • 4.2.22
  • 4.3.18
  • 4.4.17
  • 4.5.16
  • 4.6.13
  • 4.7.12
  • 4.8.8
  • 4.9.9
  • 5.0.1

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