Skip to content
On CISA KEVHigh

CVE-2019-8942Wordpress Code Injection

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 Oct 24, 2026 · Also known as 506d1518-658f-4deb-9c30-d0bce5ef9df4, DEBIAN-CVE-2019-8942, DLA-1742-1, UBUNTU-CVE-2019-8942, WORDFENCE-506d1518-658f-4deb-9c30-d0bce5ef9df4

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 CIRCL KEV, Industry KEV feed since Apr 12, 2021. Public exploit code is available.
  • EPSS estimates a 82% 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.

Scores

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)

82%

Higher than 99.6% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

80/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Apr 12, 2021

782 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

6

Proof-of-concept links

In-the-wild evidence

4

Reports of active use

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
CIRCL KEVApr 12, 2021n/aNot reported
Industry KEV feedApr 12, 2021n/aNot reported

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 CIRCL KEV

    Apr 12, 2021

  3. Added to Industry KEV feed

    Apr 12, 2021

  4. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code
  • 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 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.