Skip to content
Vulnerability Intelligence

CVE-2019-8942

HighExploitedPublic exploit

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.

Published Feb 20, 2019 · Updated Aug 4, 2026 · Also known as 506d1518-658f-4deb-9c30-d0bce5ef9df4, DEBIAN-CVE-2019-8942, DLA-1742-1, UBUNTU-CVE-2019-8942

Key Facts

Patch immediately
  • CVE-2019-8942 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Wordpress, Debian Linux.
  • It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Apr 12, 2021. Public exploit code is available.
  • EPSS estimates a 83% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Wordpress 3.7.28, Wordpress 4.1.26+dfsg-1+deb8u1, Wordpress 4.7.5+dfsg-2+deb9u5.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

CVSS v3.1

8.8

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

EPSS (30-day exploit likelihood)

83%

Higher than 99.6% of all scored CVEs

Exploited in the wild

Yes

2 catalog listings

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2019-8942 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedApr 12, 2021n/aNot reported
CIRCL KEVJul 30, 2026n/aNot reported

Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Affected Products

26 affected entries in total
ProductAffected versionsFixed in
WordpressWordpress5.0, 5.0-beta1, 5.0-beta2, 5.0-beta3, 5.0-beta4, 5.0-beta5, 5.0-rc1, 5.0-rc24.9.9
Debian LinuxDebian9.0n/a

Patched Releases

Wordpress

3.7.28, 4.1.26+dfsg-1+deb8u1, 4.7.5+dfsg-2+deb9u5, 5.0.1-1, 5.0.1+dfsg1-1, 4.9.9

Timeline

  1. Publicly disclosed

    Feb 20, 2019

  2. Added to Industry KEV feed

    Apr 12, 2021

  3. Added to CIRCL KEV

    Jul 30, 2026

  4. Last updated

    Aug 4, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')
  • CWE-434 Unrestricted Upload of File with Dangerous Type

References

13 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2019-8942 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo