CVE-2018-14028: In WordPress 4.9.7, plugins uploaded via the admin area are not verified as being ZIP files.
High CVSS 7.2
- CVE id
- CVE-2018-14028
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| WordPress Runtimes and servers |
4.9.7 | not fixed yet |
How to fix it
No fix yet. No fixed WordPress release is listed yet.
wp core version
- Check the advisory and its references below for a workaround or a configuration change that turns off the affected feature.
- Limit exposure: don't pass untrusted input to the affected code path, and keep it off public endpoints if you can.
- Update WordPress core to the patched release (Dashboard > Updates, wp core update, or the wordpress image tag).
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
In WordPress 4.9.7, plugins uploaded via the admin area are not verified as being ZIP files. This allows for PHP files to be uploaded. Once a PHP file is uploaded, the plugin extraction fails, but the PHP file remains in a predictable wp-content/uploads location, allowing for an attacker to then execute the file. This represents a security risk in limited scenarios where an attacker (who does have the required capabilities for plugin uploads) cannot simply place arbitrary PHP code into a valid plugin ZIP file and upload that plugin, because a machine's wp-content/plugins directory permissions were set up to block all new plugins.
References
- CVE-2018-14028 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-14028
- Web: https://core.trac.wordpress.org/ticket/44710
- Web: https://github.com/rastating/wordpress-exploit-framework/pull/52
- Web: https://rastating.github.io/unrestricted-file-upload-via-plugin-uploader-in-wordpress/
- Web: https://core.trac.wordpress.org/ticket/44710
- Web: https://github.com/rastating/wordpress-exploit-framework/pull/52
- Web: https://rastating.github.io/unrestricted-file-upload-via-plugin-uploader-in-wordpress/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.