Name | CVE-2019-8943 |
Description | WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 923583 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
wordpress (PTS) | jessie, jessie (lts) | 4.1.35+dfsg-0+deb8u1 | undetermined |
| stretch (security), stretch (lts), stretch | 4.7.23+dfsg-0+deb9u1 | undetermined |
| buster (security), buster, buster (lts) | 5.0.21+dfsg1-0+deb10u1 | undetermined |
| bullseye (security), bullseye | 5.7.11+dfsg1-0+deb11u1 | undetermined |
| bookworm (security), bookworm | 6.1.6+dfsg1-0+deb12u1 | undetermined |
| sid, trixie | 6.6.1+dfsg1-1 | undetermined |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
wordpress | source | (unstable) | undetermined | | | 923583 |
Notes
[jessie] - wordpress <postponed> (requires privileged account, not directly exploitable as CVE-2019-8942 is fixed, no official patch)
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/
This CVE is explicitly for the mentioned Path Traversal in wp_crop_image().
Patching CVE-2019-8942 makes CVE-2019-8943 (RCE) not directly exploitable
RCE would now require a vulnerable plugin, and a crop-resistant PHP webshell embedded in an image (preserved EXIF data, PNG IDAT reverse deflate...)
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/#path-traversal-via-modified-post-meta
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/#exploiting-the-path-traversal-lfi-in-theme-directory