CVE-2019-9787: WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution by unauthenticated users in a default configuration.
High CVSS 8.8
- CVE id
- CVE-2019-9787
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| WordPress Runtimes and servers |
< 5.1.1 | 5.1.1 |
How to fix it
Upgrade WordPress to 5.1.1 or later.
wp core version
- 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
WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution by unauthenticated users in a default configuration. This occurs because CSRF protection is mishandled, and because Search Engine Optimization of A elements is performed incorrectly, leading to XSS. The XSS results in administrative access, which allows arbitrary changes to .php files. This is related to wp-admin/includes/ajax-actions.php and wp-includes/comment.php.
References
- CVE-2019-9787 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2019-9787
- Web: https://blog.ripstech.com/2019/wordpress-csrf-to-rce/
- Web: https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b
- Web: https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
- Web: https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/
- Web: https://wordpress.org/support/wordpress-version/version-5-1-1/
- Web: https://wpvulndb.com/vulnerabilities/9230
- Web: https://www.debian.org/security/2020/dsa-4677
- Web: https://blog.ripstech.com/2019/wordpress-csrf-to-rce/
- Web: https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b
- Web: https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
- Web: https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/
- Web: https://wordpress.org/support/wordpress-version/version-5-1-1/
- Web: https://wpvulndb.com/vulnerabilities/9230
- Web: https://www.debian.org/security/2020/dsa-4677
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.