SOC status:Duty analyst on shift

UK Cyber Defence
VulnerabilityModified

CVE-2019-8942

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.

EXPLOIT ×2 ✓HIGH 8.8EPSS 82.7%

Does this matter?

EPSS puts the probability of exploitation in the next 30 days at 82.7%, higher than 100% of all known CVEs. Patch or mitigate before the next change window.

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.

CVSS 3.0
8.8 HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
82.74% probability · 100th percentile
Public exploits
2 in Exploit-DB · verified · first 1 March 2019
CISA KEV
Not listed
Weakness
CWE-434
Affected
wordpress/wordpress · debian/debian linux
Source
cve@mitre.org
EPSS trend
0%48%95%21 September 2026: 92.72%22 September 2026: 82.74%26 October 2026: 82.74%21 September 202626 October 2026

EPSS moved from 92.7% on 21 September 2026 to 82.7% on 26 October 2026. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”.

Public exploits (2)

Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.

EDB-IDTitleTypePublishedVerified
EDB-46662source ↗WordPress Core 5.0.0 - Crop-image Shell Upload (Metasploit)php · Metasploitremote5 April 2019yes
EDB-46511source ↗WordPress Core 5.0 - Remote Code Executionphp · allyshkawebapps1 March 2019no

References

Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.