cve.bz

CVE-2019-8942

8.8 highExploitEPSS 82%

High (8.8). EPSS 82% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

8.8 high
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
82% (unchanged from 82% a week ago; 83% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-434 Unrestricted Upload of File with Dangerous Type
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-8942 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-8942?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-8942?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-8942 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
wordpress:wordpressbefore 4.9.9
wordpress:wordpress5.0
wordpress:wordpress5.0:beta1
wordpress:wordpress5.0:beta2
wordpress:wordpress5.0:beta3
wordpress:wordpress5.0:beta4
wordpress:wordpress5.0:beta5
wordpress:wordpress5.0:rc1
wordpress:wordpress5.0:rc2
wordpress:wordpress5.0:rc3
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8wordpress4.1.26+dfsg-1+deb8u1DLA-1742-1
Debian9wordpress4.7.5+dfsg-2+deb9u5DSA-4401-1
Debian12, 13, 14wordpress5.0.1+dfsg1-1DEBIAN-CVE-2019-8942
Ubuntu16.04:LTS, 18.04:LTSwordpressno fix listedUBUNTU-CVE-2019-8942

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • SpeatX/WordPress-RCE-CVE-2019-8942 Harbor Check: matches CVE 1 star, Python, created
    Python exploit toolkit for WordPress Crop Image RCE — CVE-2019-8942 & CVE-2019-8943

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON