Search for vulnerabilities
| Vulnerability ID | VCID-wh7d-sncc-n3c4 |
| Aliases |
CVE-2019-8942
|
| Summary | 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. |
| Status | Published |
| Exploitability | 2.0 |
| Weighted Severity | 9.0 |
| Risk | 10.0 |
| Affected and Fixed Packages | Package Details |
| Data source | Metasploit |
|---|---|
| Description | This module exploits a path traversal and a local file inclusion vulnerability on WordPress versions 5.0.0 and <= 4.9.8. The crop-image function allows a user, with at least author privileges, to resize an image and perform a path traversal by changing the _wp_attached_file reference during the upload. The second part of the exploit will include this image in the current theme by changing the _wp_page_template attribute when creating a post. This exploit module only works for Unix-based systems currently. |
| Note | Stability: - crash-safe Reliability: - repeatable-session SideEffects: - artifacts-on-disk - ioc-in-logs |
| Ransomware campaign use | Unknown |
| Source publication date | Feb. 19, 2019 |
| Platform | PHP |
| Source URL | https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/wp_crop_rce.rb |
| Data source | Exploit-DB |
|---|---|
| Date added | March 7, 2019 |
| Description | WordPress Core 5.0 - Remote Code Execution |
| Ransomware campaign use | Unknown |
| Source publication date | March 1, 2019 |
| Exploit type | webapps |
| Platform | php |
| Source update date | March 7, 2019 |
| Source URL | https://gist.github.com/allyshka/f159c0b43f1374f87f2c3817d6401fd6 |
| Exploitability (E) | Access Vector (AV) | Access Complexity (AC) | Authentication (Au) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|
high functional unproven proof_of_concept not_defined |
local adjacent_network network |
high medium low |
multiple single none |
none partial complete |
none partial complete |
none partial complete |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Percentile | 0.99649 |
| EPSS Score | 0.91298 |
| Published At | Aug. 3, 2025, 12:55 p.m. |
| Date | Actor | Action | Source | VulnerableCode Version |
|---|---|---|---|---|
| 2025-07-31T10:01:29.543623+00:00 | NVD Importer | Import | https://nvd.nist.gov/vuln/detail/CVE-2019-8942 | 37.0.0 |