Cyber Resilience

CVE-2019-8942

Wordpress ≤ 4.9.9

Public PoCHigh EPSS
Published
20 February 2019
Modified
21 November 2024
CVSS Score v3 8.8
Click a component to see what it means
Raw vectorCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.83 99.6th percentile
Risk Priority 87 floored blend · peak EPSS

Summary

CVE-2019-8942 is a high-severity Unrestricted Upload of File with Dangerous Type (CWE-434) vulnerability in Wordpress Wordpress. Its CVSS base score is 8.8 (High).

Operationally, ranked in the top 0.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

code by uploading a crafted image containing PHP code in the Exif metadata. Exploitation can leverage CVE-2019-8943.

CWE(s)

Related Threats

Likely ATT&CK TechniquesAI

Techniques this vulnerability likely enables, inferred from its description, weakness type, and attributed-actor tradecraft. Confidence is per-technique.

T1204.002 Malicious File Executionconfidence: HIGH
Attacker uploads a crafted malicious image file to trigger code execution.
T1059.004 Unix Shell Executionconfidence: HIGH
Arbitrary PHP code in the uploaded file is executed via the web server interpreter.
T1505.003 Web Shell Persistenceconfidence: HIGH
The vulnerability enables placement of a web shell by renaming the uploaded file to a .php extension.
T1068 Exploitation for Privilege Escalation Privilege Escalationconfidence: MEDIUM
Remote code execution as an authenticated author can lead to privilege escalation on the host.
inferred from description + CWE · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2018-12895Same product: Debian Debian Linux
CVE-2024-31210Same product: Wordpress Wordpress
CVE-2024-31211Same product: Wordpress Wordpress
CVE-2024-4439Same product: Wordpress Wordpress
CVE-2026-60137Same product: Wordpress Wordpress
CVE-2026-63030Same product: Wordpress Wordpress
CVE-2023-22622Same product: Wordpress Wordpress
CVE-2023-5561Same product: Wordpress Wordpress
CVE-2023-2745Same product: Wordpress Wordpress
CVE-2023-38000Same product: Wordpress Wordpress

Affected Assets

wordpress
wordpress
5.0 · ≤ 4.9.9
debian
debian linux
9.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V5.1.1

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-434

Requiring identifiable owners for portable devices reduces the attack surface for unrestricted uploads of dangerous file types via anonymous media.

addresses: CWE-434

Dangerous file uploads can be detonated in the chamber to determine malice before any production write or execution occurs.

addresses: CWE-434

Prevents unrestricted writing of arbitrary or malicious firmware by keeping hardware write-protect enabled except under tightly controlled manual procedures.

addresses: CWE-434

Scans files from external sources on download/open/execute, blocking unrestricted uploads of dangerous file types.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-05 mostly match
prevents

Restricting execution of unauthorized software directly blocks dangerous uploaded files from running.

PR.PS-01 partial match
prevents

Hardened configuration baselines can enforce allowed file types and processing rules.

PR.PS-06 partial match
prevents

Secure development practices include input validation and file-type restrictions that prevent this weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Configuration and acceptance testing verify that file-upload handling enforces allowed types and does not permit dangerous content to be stored or executed.

prevents

Secure-coding guidelines and security testing explicitly address restrictions on allowed file types and upload handling, reducing the risk that dangerous file uploads are accepted without validation.

prevents

Mandated testing for malicious content and known vulnerabilities reduces the likelihood that an outsourced component will contain or accept dangerous file types that could later be uploaded or executed.

mitigates

Application allow-listing and pre-use scanning of received files directly blocks the introduction of executable content that has not been vetted, eliminating the primary vector for unrestricted dangerous file uploads.

References